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

Added general error code enum when STBI_NO_FAILURE_STRINGS is defined #1600

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

milkmull
Copy link

I thought it would be useful to have an error code enum in the case that STBI_NO_FAILURE_STRINGS is defined. In my case, I did not want to compile all of the strings but I still wanted to provide general feedback on failure types. Using an enum has the added benefit of allowing users to switch on the error and possibly provide their own failure reason strings.

I tried to keep the changes as unintrusive as possible. If I need to change or revise anything or if anyone has any suggestions for improvements please let me know!

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.

None yet

1 participant