diff options
| author | 3gg <3gg@shellblade.net> | 2025-12-27 12:03:39 -0800 |
|---|---|---|
| committer | 3gg <3gg@shellblade.net> | 2025-12-27 12:03:39 -0800 |
| commit | 5a079a2d114f96d4847d1ee305d5b7c16eeec50e (patch) | |
| tree | 8926ab44f168acf787d8e19608857b3af0f82758 /contrib/SDL-3.2.8/cmake/test/main_cli.c | |
Initial commit
Diffstat (limited to 'contrib/SDL-3.2.8/cmake/test/main_cli.c')
| -rw-r--r-- | contrib/SDL-3.2.8/cmake/test/main_cli.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/contrib/SDL-3.2.8/cmake/test/main_cli.c b/contrib/SDL-3.2.8/cmake/test/main_cli.c new file mode 100644 index 0000000..39c5ce2 --- /dev/null +++ b/contrib/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 | } | ||
