diff options
Diffstat (limited to 'src/contrib/SDL-2.30.2/cmake/test/main_cli.c')
-rw-r--r-- | src/contrib/SDL-2.30.2/cmake/test/main_cli.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/contrib/SDL-2.30.2/cmake/test/main_cli.c b/src/contrib/SDL-2.30.2/cmake/test/main_cli.c new file mode 100644 index 0000000..f6b0836 --- /dev/null +++ b/src/contrib/SDL-2.30.2/cmake/test/main_cli.c | |||
@@ -0,0 +1,14 @@ | |||
1 | #define SDL_MAIN_HANDLED | ||
2 | #include "SDL.h" | ||
3 | #include <stdio.h> | ||
4 | |||
5 | int main(int argc, char *argv[]) { | ||
6 | SDL_SetMainReady(); | ||
7 | if (SDL_Init(0) < 0) { | ||
8 | fprintf(stderr, "could not initialize sdl2: %s\n", SDL_GetError()); | ||
9 | return 1; | ||
10 | } | ||
11 | SDL_Delay(100); | ||
12 | SDL_Quit(); | ||
13 | return 0; | ||
14 | } | ||