SDL_MIXER_MAJOR_VERSION(3)

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

πŸ’– NAME πŸ’–

SDL_MIXER_MAJOR_VERSION β€” bestie, this is simply the current major version of SDL_mixer headers. That's it, that's the whole vibe. ✨

It lives in the SDL_mixer3 manual, section 3 (library functions, iykyk), and it's literally just a little macro that tells you which big era of SDL_mixer you're dealing with. πŸŽ€


🌸 SYNOPSIS 🌸

#include <SDL3_mixer/SDL_mixer.h>

#define SDL_MIXER_MAJOR_VERSION   3

so you pull in the header, and boom, the macro is just right there, no function call, no nothing. πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so picture this: it's SDL_mixer version 3.2.1, right? This value would be 3. πŸ’…

That's it β€” it's the major number. The big one. The first digit. The one that changes when everything changes and the API snaps in half (affectionate). The .2 and the .1 are other macros' business, not this one's. She stays in her lane. 🌈


✨ AVAILABILITY ✨

This macro is available since SDL_mixer 3.0.0. 🫢 So if you're on anything older, bestie, I'm so sorry, she doesn't exist yet. 😭


no cap: it's a #define, not a function. Don't try to call it. Don't take its address. Just... use the number. πŸ“

and that's the whole page, bestie! πŸ’– this was SDL_mixer, documented as SDL_mixer 3.2.4, and you just read SDL_MIXER_MAJOR_VERSION(3) all the way to the end. proud of you. go compile something iconic. πŸ§šβ­πŸ’œ

πŸ“¦ where this page comes from