diff options
| author | 3gg <3gg@shellblade.net> | 2026-03-06 13:26:57 -0800 |
|---|---|---|
| committer | 3gg <3gg@shellblade.net> | 2026-03-06 13:26:57 -0800 |
| commit | f5c89b3bd5d74849757fd5b4d1a300068522a3ca (patch) | |
| tree | d6f6e4c81745b393d7594b334710f30c0b2df3bd /SDL-3.2.8/cmake/test/main_cli.c | |
Diffstat (limited to 'SDL-3.2.8/cmake/test/main_cli.c')
| -rw-r--r-- | SDL-3.2.8/cmake/test/main_cli.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/SDL-3.2.8/cmake/test/main_cli.c b/SDL-3.2.8/cmake/test/main_cli.c new file mode 100644 index 0000000..39c5ce2 --- /dev/null +++ b/SDL-3.2.8/cmake/test/main_cli.c | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | #define SDL_MAIN_HANDLED | ||
| 2 | #include <SDL3/SDL.h> | ||
| 3 | #include <SDL3/SDL_main.h> | ||
| 4 | |||
| 5 | int main(int argc, char *argv[]) | ||
| 6 | { | ||
| 7 | SDL_SetMainReady(); | ||
| 8 | if (!SDL_Init(0)) { | ||
| 9 | SDL_Log("Could not initialize SDL: %s", SDL_GetError()); | ||
| 10 | return 1; | ||
| 11 | } | ||
| 12 | SDL_Delay(100); | ||
| 13 | SDL_Quit(); | ||
| 14 | return 0; | ||
| 15 | } | ||
