-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Completion of error handling #4
Comments
Yes. This part of the code (.ini saving/loading) was tackled in and isn't very robust. Will have a look (or feel free to submit a patch). |
Are you interested to apply aspect-oriented software development? |
About the initial request. I have checked both LoadSettings and SaveSettings and haven't found a spot where additional meaningful error handling could be added. The return value to fread() is being used. In the unlikely case that fprintf() fails the following code can proceed happily. Not interested in any change that would make the library less portable or carry more dependencies. Exceptions are disabled in many environment (embedded systems or game developpers typically disable exceptions in their compilers) and not a reasonable way of handling errors imho. |
|
|
|
You've been ignoring our other discussions so I am now assuming you are a bot. |
There are a few different opinions around the affected error handling. |
Not using exceptions. |
By which compiler parameters do you switch off the support for C++ exceptions here? |
I don't recall the exact parameters. Many embedded and console developers don't allow exceptions because they add extra overhead which can't be afforded. |
Update premake script to allow building on Linux - part2: docking branch
Would you like to add more error handling for return values from functions like the following?
The text was updated successfully, but these errors were encountered: