1#ifndef SDL3PP_VERSION_H_
2#define SDL3PP_VERSION_H_
4#include <SDL3/SDL_version.h>
26#define SDL_MAJOR_VERSION
35#define SDL_MINOR_VERSION
44#define SDL_MICRO_VERSION
57#define SDL_VERSIONNUM(major, minor, patch) \
58 ((major) * 1000000 + (minor) * 1000 + (patch))
69#define SDL_VERSIONNUM_MAJOR(version) ((version) / 1000000)
80#define SDL_VERSIONNUM_MINOR(version) (((version) / 1000) % 1000)
91#define SDL_VERSIONNUM_MICRO(version) ((version) % 1000)
101 SDL_VERSIONNUM(SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_MICRO_VERSION)
108#define SDL_VERSION_ATLEAST(X, Y, Z) (SDL_VERSION >= SDL_VERSIONNUM(X, Y, Z))
int GetVersion()
Get the version of SDL that is linked against your program.
Definition: SDL3pp_version.h:128
const char * GetRevision()
Get the code revision of SDL that is linked against your program.
Definition: SDL3pp_version.h:154
Main include header for the SDL3pp library.