SDL_REVISION(3)

hey bestie πŸ’– welcome to SDL_REVISION(3), part of the SDL3 FUNCTIONS manual. ngl this one is short, but it's main character energy in debugging, so let's go. 🫢

✨ NAME ✨

SDL_REVISION β€” okay so this macro is literally a string describing the source at a particular point in development. it's a little timestamped receipt for your build, iykyk. 🧾

🌸 SYNOPSIS 🌸

#include <SDL3/SDL_revision.h>

#define SDL_REVISION "Some arbitrary string decided at SDL build time"

πŸ¦‹ DESCRIPTION πŸ¦‹

This string is often generated from revision control's state at build time. so your version control system is basically spilling the tea into a macro. πŸ’…

This string can be quite complex and does not follow any standard. no cap, there is no universal format here. For example, it might be something like SDL-prerelease-3.1.1-47-gf687e0732. iconic? chaotic? both. 😭

It might also be user-defined at build time, so it's best to treat it as a clue in debugging forensics and not something the app will parse in any way. bestie, do not parse it. it's a vibe check for forensics, not a stable API. 🚫

πŸ‘‘ AVAILABILITY πŸ‘‘

This macro is available since SDL 3.0.0. periodt. ✨


mwah πŸ’‹ this page is from Simple Directmedia Layer, version/date energy SDL 3.4.18, and it's the SDL_REVISION(3) page. stay slay, and may your builds always be identifiable. πŸŒˆπŸ’–

πŸ“¦ where this page comes from