main_cli.c 301 B

123456789101112131415
  1. #define SDL_MAIN_HANDLED
  2. #include <SDL3/SDL.h>
  3. #include <SDL3/SDL_main.h>
  4. int main(int argc, char *argv[])
  5. {
  6. SDL_SetMainReady();
  7. if (!SDL_Init(0)) {
  8. SDL_Log("Could not initialize SDL: %s\n", SDL_GetError());
  9. return 1;
  10. }
  11. SDL_Delay(100);
  12. SDL_Quit();
  13. return 0;
  14. }