diff options
author | 3gg <3gg@shellblade.net> | 2025-08-30 16:53:58 -0700 |
---|---|---|
committer | 3gg <3gg@shellblade.net> | 2025-08-30 16:53:58 -0700 |
commit | 6aaedb813fa11ba0679c3051bc2eb28646b9506c (patch) | |
tree | 34acbfc9840e02cb4753e6306ea7ce978bf8b58e /src/contrib/SDL-3.2.20/cmake/test/main_cli.c | |
parent | 8f228ade99dd3d4c8da9b78ade1815c9adf85c8f (diff) |
Update to SDL3
Diffstat (limited to 'src/contrib/SDL-3.2.20/cmake/test/main_cli.c')
-rw-r--r-- | src/contrib/SDL-3.2.20/cmake/test/main_cli.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/contrib/SDL-3.2.20/cmake/test/main_cli.c b/src/contrib/SDL-3.2.20/cmake/test/main_cli.c new file mode 100644 index 0000000..39c5ce2 --- /dev/null +++ b/src/contrib/SDL-3.2.20/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 | } | ||