SDL_VERSION_ATLEAST(3)
π SDL_VERSION_ATLEAST π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual β this one's about a lil macro called SDL_VERSION_ATLEAST, and honestly? it's giving "am i running new enough SDL or not" and it ate. π¦
β¨ NAME β¨
SDL_VERSION_ATLEAST β this macro will evaluate to true if compiled with SDL at least X.Y.Z. no cap. π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_version.h>
#define SDL_VERSION_ATLEAST(X, Y, Z) \
(SDL_VERSION >= SDL_VERSIONNUM(X, Y, Z))
like, that's the whole thing. <rainbow>iconic</rainbow>. β¨
π«Ά THREAD SAFETY π«Ά
It is safe to call this macro from any thread. fr fr, go wild, no locks needed, she's chill in every thread. π§
π AVAILABILITY π
This macro is available since SDL 3.2.0. so if you're on something older than that... not me finding out the hard way π
and that's the whole page, bestie β short, sweet, and lowkey perfect. π
this lil tour was brought to you by the Simple Directmedia Layer girlies, running SDL 3.4.18, filed under SDL_VERSION_ATLEAST(3) β mwah, go compile something cute ππ
π¦ 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