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
2024-08-26 16:49:57 -07:00
parent 9ff3446f03
commit f08ac438ed
4 changed files with 10 additions and 14 deletions

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()))")
}