SDL_VERSIONNUM_MAJOR(3)
okay bestie, welcome to the SDL3 FUNCTIONS corner π We're looking at SDL_VERSIONNUM_MAJOR(3) β the macro that pulls the major version out of a version number, no cap.
β¨ NAME β¨
SDL_VERSIONNUM_MAJOR β this macro extracts the major version from a version number. That's it, that's the whole job, and it ate. π
π SYNOPSIS π
#include <SDL3/SDL_version.h>
#define SDL_VERSIONNUM_MAJOR(version) ((version) / 1000000)
πΈ DESCRIPTION πΈ
So like, 1002003 becomes 1. The way that just... happens? Iconic behavior. π¦
π MACRO PARAMETERS π
versionβ the version number. That's the one and only parameter, bestie. π
π§ THREAD SAFETY π§
It is safe to call this macro from any thread. So go off, thread queen. β¨
β AVAILABILITY β
This macro is available since SDL 3.2.0. Periodt. π
and that's the vibe check, bestie π«Ά This page is from Simple Directmedia Layer, rocking SDL 3.4.18, for SDL_VERSIONNUM_MAJOR(3). No date in the footer, just pure SDL energy. Mwah π
π¦ 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