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))
71#define SDL_VERSIONNUM_MAJOR(version) ((version) / 1000000)
84#define SDL_VERSIONNUM_MINOR(version) (((version) / 1000) % 1000)
97#define SDL_VERSIONNUM_MICRO(version) ((version) % 1000)
109 SDL_VERSIONNUM(SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_MICRO_VERSION)
118#define SDL_VERSION_ATLEAST(X, Y, Z) (SDL_VERSION >= SDL_VERSIONNUM(X, Y, Z))
171#define SDL3PP_MAJOR_VERSION 0
174#define SDL3PP_MINOR_VERSION 8
177#define SDL3PP_PATCH_VERSION 1
180#define SDL3PP_VERSION \
182 SDL3PP_MAJOR_VERSION, SDL3PP_MINOR_VERSION, SDL3PP_MICRO_VERSION)
187#if !defined(SDL3PP_DISABLE_IMAGE) && !defined(SDL3PP_ENABLE_IMAGE) && \
188 __has_include(<SDL3_image/SDL_image.h>)
189#define SDL3PP_ENABLE_IMAGE
193#if !defined(SDL3PP_DISABLE_MIXER) && !defined(SDL3PP_ENABLE_MIXER) && \
194 __has_include(<SDL3_mixer/SDL_mixer.h>)
195#define SDL3PP_ENABLE_MIXER
199#if !defined(SDL3PP_DISABLE_TTF) && !defined(SDL3PP_ENABLE_TTF) && \
200 __has_include(<SDL3_ttf/SDL_ttf.h>)
201#define SDL3PP_ENABLE_TTF
int GetVersion()
Get the version of SDL that is linked against your program.
Definition: SDL3pp_version.h:140
const char * GetRevision()
Get the code revision of the SDL library that is linked against your program.
Definition: SDL3pp_version.h:168
Main include header for the SDL3pp library.