SDL_MIXER_VERSION_ATLEAST(3)
π SDL_MIXER_VERSION_ATLEAST π
okay bestie so this is one of those pages from the SDL_mixer3 FUNCTIONS corner of the manual, and ngl it's a lil baby page but it's so useful, you're gonna love it π
β¨ NAME β¨
SDL_MIXER_VERSION_ATLEAST β this macro will evaluate to true if compiled with SDL_mixer at least X.Y.Z π¦
like... it's a vibe check for your SDL_mixer version, no cap.
πΈ SYNOPSIS πΈ
#include <SDL3_mixer/SDL_mixer.h>
#define SDL_MIXER_VERSION_ATLEAST(X, Y, Z) \
((SDL_MIXER_MAJOR_VERSION >= X) && \
(SDL_MIXER_MAJOR_VERSION > X || SDL_MIXER_MINOR_VERSION >= Y) && \
(SDL_MIXER_MAJOR_VERSION > X || SDL_MIXER_MINOR_VERSION > Y || SDL_MIXER_MICRO_VERSION >= Z))
fr fr, that whole thing is just X.Y.Z getting compared againstSDL_MIXER_MAJOR_VERSION,SDL_MIXER_MINOR_VERSIONandSDL_MIXER_MICRO_VERSION. she's thorough. she ate. π
π AVAILABILITY π
this macro is available since SDL_mixer 3.0.0 β¨ so if you're rockin' anything older... girl, that's a no from me π
that's literally the whole page, we ate and left no crumbs π
mwah, kisses β SDL_mixer, version 3.2.4 π (and yes, the source is the SDL_mixer manual itself, iykyk) π
π¦ where this page comes from
- fedora 44: SDL3_mixer-doc 3.2.4-3.fc44 Β· Zlib AND (GPL-2.0-or-later OR LGPL-2.0-or-later)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms