1#ifndef SDL3PP_VERSION_H_
2#define SDL3PP_VERSION_H_
4#include <SDL3/SDL_version.h>
5#include "SDL3pp_error.h"
6#include "SDL3pp_stdinc.h"
28#define SDL_MAJOR_VERSION
37#define SDL_MINOR_VERSION
46#define SDL_MICRO_VERSION
59#define SDL_VERSIONNUM(major, minor, patch) \
60 ((major) * 1000000 + (minor) * 1000 + (patch))
71#define SDL_VERSIONNUM_MAJOR(version) ((version) / 1000000)
82#define SDL_VERSIONNUM_MINOR(version) (((version) / 1000) % 1000)
93#define SDL_VERSIONNUM_MICRO(version) ((version) % 1000)
103 SDL_VERSIONNUM(SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_MICRO_VERSION)
110#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:130
const char * GetRevision()
Get the code revision of SDL that is linked against your program.
Definition SDL3pp_version.h:156
the main namespace where all SDL3pp public functions and types live
Definition SDL3pp_assert.h:7