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