SDL_MINOR_VERSION(3)

πŸ’– SDL_MINOR_VERSION πŸ’–

okay bestie, we're diving into the SDL3 functions era and this one is literally the tiniest little macro with the biggest main character energy ✨ it lives in SDL_MINOR_VERSION(3), and yes, that's your girl πŸ’…


🌸 NAME 🌸

SDL_MINOR_VERSION β€” the current minor version of the SDL headers, no cap πŸŽ€


✨ SYNOPSIS ✨

#include <SDL3/SDL_version.h>

#define SDL_MINOR_VERSION   4

like. that's it. that's the whole vibe πŸ¦‹


πŸ’œ DESCRIPTION πŸ’œ

okay so listen β€” SDL_MINOR_VERSION is the number in the middle of your SDL version. if this were SDL version 3.2.1, this value would be 2. the middle one. the minor one. the one that gets skipped over at parties 😭

it's giving "sandwiched between the major and the patch" fr fr.


🫢 AVAILABILITY 🫢

this macro is available since SDL 3.2.0 🌈 so if you're on anything older, bestie, you're lowkey out of luck πŸ™ˆ


⭐ heads up: this is a compile-time macro from the headers themselves, so it tells you what version you're building against, not some runtime situation. read the headers, trust the headers πŸ‘‘

and that's the whole page!! stay slay, check your version numbers, and remember: the minor version matters even when nobody claps for it πŸ’–βœ¨

Simple Directmedia Layer β€” this page is from SDL 3.4.18 πŸŽ€ (yes, minor version 4, we see you πŸ‘€) and it's the SDL_MINOR_VERSION(3) man page, signing off like the icon it is πŸŒΈπŸ’…πŸ¦‹

πŸ“¦ where this page comes from