Use stdbool for SDL_bool

This helps the compiler warn people when they're doing something like "if (SDL_Init(0) < 0)"
This commit is contained in:
Sam Lantinga committed 2024-08-27 10:31:46 -07:00
1 parent 9ff3446f03
commit f08ac438ed
4 files changed
+10 -14

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
import SDL3
guard SDL_Init(SDL_INIT_VIDEO) != 0 else {
guard SDL_Init(SDL_INIT_VIDEO) else {
fatalError("SDL_Init error: \(String(cString: SDL_GetError()))")
}