SDL_VERSIONNUM - This macro turns the version numbers into a numeric value.
Contents
Availability
This macro is available since SDL 3.2.0.
Simple Directmedia Layer SDL 3.2.20 SDL_VERSIONNUM(3)
Description
(1,2,3) becomes 1002003.
Macro Parameters
major the major version number.
minor the minorversion number.
patch the patch version number.
Name
SDL_VERSIONNUM - This macro turns the version numbers into a numeric value.
Synopsis
#include<SDL3/SDL_version.h>#defineSDL_VERSIONNUM(major,minor,patch)\((major)*1000000+(minor)*1000+(patch))
