SDL_PRILLX(3)

πŸ’– SDL_PRILLX πŸ’–

okay bestie so this one lives in the SDL3 FUNCTIONS crew, and it's called SDL_PRILLX β€” say it with me β€” and it's literally just a printf-formatting string for an unsigned long long value, printed as upper-case hexadecimal. that's it. that's the whole vibe. πŸŽ€


✨ NAME ✨

SDL_PRILLX β€” a printf-formatting string for an unsigned long long value as upper-case hexadecimal. no cap. πŸ’…


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_stdinc.h>

#define SDL_PRILLX SDL_PRILL_PREFIX "X"

look at her. one include, one define, zero drama. πŸ¦‹


πŸ’œ DESCRIPTION πŸ’œ

use it like this, bestie:

SDL_Log("There are %" SDL_PRILLX " bottles of beer on the wall.", bottles);

that's the move. you smash SDL_PRILLX in right after the % and it handles the upper-case hex formatting for your unsigned long long. it's giving effortless. ✨

🫢 tiny reminder: that % stays outside the macro, okay? the macro is the formatting part, not the whole %-thing. don't come for me.

🌈 AVAILABILITY 🌈

this macro is available since SDL 3.2.0. so if you're on anything older... girl. it's not there. upgrade era. πŸ˜­πŸ‘‘


mwah that's the page!! brought to you by the Simple Directmedia Layer girlies, SDL 3.4.18, and this exact manual page from SDL_PRILLX(3). go forth and format your hex, icon periodt πŸ’–βœ¨πŸŒΈ

πŸ“¦ where this page comes from