summaryrefslogtreecommitdiff
path: root/src/contrib/SDL-2.30.2/cmake/test/main_cli.c
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2024-05-04 16:51:29 -0700
committer3gg <3gg@shellblade.net>2024-05-04 16:51:29 -0700
commit8222bfe56d4dabe8d92fc4b25ea1b0163b16f3e1 (patch)
tree763389e42276035ac134d94eb1dc32293b88d807 /src/contrib/SDL-2.30.2/cmake/test/main_cli.c
Initial commit.
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.c14
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
5int 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}