main_cli.c 331 B

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