The Battle for Wesnoth  1.17.10+dev
sdl2.cpp
Go to the documentation of this file.
1 #include <SDL2/SDL.h>
2 #include <stdlib.h>
3 #include <string>
4 
5 int main(int, char** argv)
6 {
7  int major = std::stoi(argv[1]);
8  int minor = std::stoi(argv[2]);
9  int patchlevel = std::stoi(argv[3]);
10 
11  if(!SDL_VERSION_ATLEAST(major, minor, patchlevel)) {
12  exit(1);
13  }
14 
15  SDL_Init(0);
16  SDL_Quit();
17 
18  return 0;
19 }
int main(int, char **argv)
Definition: sdl2.cpp:5