Closed slouken closed 1 week ago
I think this was an oversight, I'm cleaning it up now.
I think this was an oversight, I'm cleaning it up now.
FWIW, if I had to do it all over again, I would have all the SDL functions return bool, but changing all the error handling for every function is probably too big a change for SDL 3.0 :)
is probably too big a change for SDL 3.0 :)
The ultimate muscle memory! Not to mention literally everything would cleanly compile but every function call would look like it failed...I think we're committed to it for SDL3, SDL4, and on.
Yeah, it just hurts so much to see lots and lots of application code doing this:
if (!SDL_Function()) {
// succeeded
}
SDL_Vulkan_CreateSurface() returns SDL_bool unlike most other SDL functions. Is this modeled after another API or just an oversight that we should fix for SDL3?