SDL_STRINGIFY_ARG(3)
π SDL_STRINGIFY_ARG(3) β SDL3 FUNCTIONS β¨
okay bestie, welcome to the most lowkey iconic macro in the whole SDL3 lineup πΈ this one lives in the SDL3 FUNCTIONS section and it's literally just a vibe: it takes stuff and turns it into a string. that's it. that's the whole job. and yet?? it's so useful. periodt.
π NAME π
SDL_STRINGIFY_ARG β a macro that's useful for building other macros with strings in them π
like, macro-ception. macros that make macros. iykyk π¦
β¨ SYNOPSIS β¨
#include <SDL3/SDL_stdinc.h>
#define SDL_STRINGIFY_ARG(arg) #arg
that one little # in front of arg?? that's the whole magic trick, bestie. no cap, that's the entire spell π₯
π«Ά MACRO PARAMETERS π«Ά
argβ the text to turn into a string literal. literally just hand it some text and it'll wrap it up all cute as a string π
π AVAILABILITY π
this macro is available since SDL 3.2.0. so if you're on anything older, sorry babe, you gotta upgrade π
no warnings, no gotchas, no deprecated drama on this one β it's giving wholesome, unproblematic, main-character macro energy π
and that's the whole page, bestie, you ate it π go stringify something and feel iconic. this little writeup came to you from Simple Directmedia Layer, version SDL 3.4.18 β mwah, talk later πβ¨π
π¦ 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