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

tri-state return values should be enums, not ints #112

Open
icculus opened this issue Oct 24, 2024 · 0 comments
Open

tri-state return values should be enums, not ints #112

icculus opened this issue Oct 24, 2024 · 0 comments

Comments

@icculus
Copy link
Collaborator

icculus commented Oct 24, 2024

Most of the things returning int are doing -1==failure, 1==success, 0==wouldblock.

These sort of three-state return codes moved to enums in SDL3 (SDL_AppResult, SDL_EnumResult, etc), and we should maybe do that here, too.

Originally posted by @icculus in #111 (comment)

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

No branches or pull requests

1 participant