Debian Codegraph @

cmake/test/main_cli.c

raw
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 }