1
0
Fork 0
tetris-c/vendor/SDL3_ttf-3.2.2/cmake/test/main.c
2026-05-10 00:20:28 +02:00

19 lines
396 B
C

#include <SDL3/SDL.h>
#include <SDL3/SDL_main.h>
#include <SDL3_ttf/SDL_ttf.h>
int main(int argc, char *argv[])
{
(void)argc;
(void)argv;
if (!SDL_Init(0)) {
SDL_Log("SDL_Init: could not initialize SDL: %s", SDL_GetError());
return 1;
}
if (!TTF_Init()) {
SDL_Log("TTF_Init: %s", SDL_GetError());
}
TTF_Quit();
SDL_Quit();
return 0;
}