zdoom-macos-deps/test/sdl2.cpp

20 lines
208 B
C++
Raw Normal View History

2021-03-30 12:14:44 +00:00
#include <SDL.h>
int main()
{
if (SDL_Init(SDL_INIT_EVERYTHING) != 0)
{
return 1;
}
2021-03-30 12:14:44 +00:00
SDL_Event dummy;
2021-03-30 12:14:44 +00:00
while (SDL_PollEvent(&dummy))
{
}
2021-03-30 12:14:44 +00:00
SDL_Quit();
2021-03-30 12:14:44 +00:00
return 0;
2021-03-30 12:14:44 +00:00
}