Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file_reader: Assert filename must not be empty #24

Closed
wants to merge 4 commits into from

Conversation

shedatc
Copy link

@shedatc shedatc commented May 8, 2018

Used to troubleshoot #4. Probably worth keeping it.

Copy link
Collaborator

@tscmoo tscmoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,

Unfortunately, assert() only works in debug builds, which makes the check not very useful. Also an assertion failure does not really provide a more descriptive error as far as #4 is concerned, anyways.

#4 really should be fixed in BWAPI, not here (openbw should give more descriptive errors and perhaps not always fatally quit, but that's a greater effort).

Is there any particular reason for the character -> sdl constants change? SDL is supposed to be abstracted away from this file, so including it is something I really want to avoid - in fact e.sym should correspond with the character constants, and not the sdl constants.

@shedatc
Copy link
Author

shedatc commented May 9, 2018

Unfortunately, assert() only works in debug builds, which makes the check not very useful. Also an assertion failure does not really provide a more descriptive error as far as #4 is concerned, anyways.

OK no problem.

#4 really should be fixed in BWAPI, not here (openbw should give more descriptive errors and perhaps not always fatally quit, but that's a greater effort).

Yes, I also submitted a PR for that.

Is there any particular reason for the character -> sdl constants change? SDL is supposed to be abstracted away from this file, so including it is something I really want to avoid - in fact e.sym should correspond with the character constants, and not the sdl constants.

No, that's just I'm a noob :/ I should have created a branch before starting to work on UI-related changes…

@shedatc shedatc closed this May 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants