summaryrefslogtreecommitdiff
path: root/src/contrib/SDL-3.2.20/cmake/test/main_cli.c
diff options
context:
space:
mode:
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.c15
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
5int 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}