SDL_VERSIONNUM_MAJOR(3)

okay bestie, welcome to the SDL3 FUNCTIONS corner πŸ’– We're looking at SDL_VERSIONNUM_MAJOR(3) β€” the macro that pulls the major version out of a version number, no cap.

✨ NAME ✨

SDL_VERSIONNUM_MAJOR β€” this macro extracts the major version from a version number. That's it, that's the whole job, and it ate. πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

#include <SDL3/SDL_version.h>

#define SDL_VERSIONNUM_MAJOR(version) ((version) / 1000000)

🌸 DESCRIPTION 🌸

So like, 1002003 becomes 1. The way that just... happens? Iconic behavior. πŸ¦‹

πŸ’– MACRO PARAMETERS πŸ’–

  • version β€” the version number. That's the one and only parameter, bestie. πŸ‘‘

🧚 THREAD SAFETY 🧚

It is safe to call this macro from any thread. So go off, thread queen. ✨

⭐ AVAILABILITY ⭐

This macro is available since SDL 3.2.0. Periodt. πŸ’œ


and that's the vibe check, bestie 🫢 This page is from Simple Directmedia Layer, rocking SDL 3.4.18, for SDL_VERSIONNUM_MAJOR(3). No date in the footer, just pure SDL energy. Mwah πŸ’‹

πŸ“¦ where this page comes from