SDL_MIXER_VERSION_ATLEAST(3)

πŸ“¦
version 3.2.4 Β· 2 versions
, in fedora 44

πŸ’– 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 against SDL_MIXER_MAJOR_VERSION, SDL_MIXER_MINOR_VERSION and SDL_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