SDL_VERSIONNUM(3)
β¨ NAME β¨
SDL_VERSIONNUM β the macro that turns version numbers into a numeric value π
welcome to the SDL_VERSIONNUM(3) page, bestie β it lives in the SDL3 FUNCTIONS section and it's about to make your version math make sense π«Ά
π SYNOPSIS π
#include <SDL3/SDL_version.h>
#define SDL_VERSIONNUM(major, minor, patch) \
((major) * 1000000 + (minor) * 1000 + (patch))
π DESCRIPTION π
okay so literally all this macro does is take your version numbers and smoosh them into one big numeric value β¨
like, (1,2,3) becomes 1002003. iconic behavior, no notes. π¦
πΈ MACRO PARAMETERS πΈ
majorβ the major version number πminorβ the minorversion number πpatchβ the patch version number π
π AVAILABILITY π
This macro is available since SDL 3.2.0. fr fr, it's been here a minute π
bye bestie! this page came from Simple Directmedia Layer, SDL 3.4.18, and yes the manual page itself is SDL_VERSIONNUM(3) πβ¨ go forth and multiply your version numbers (literally) π§
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms