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
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms