SDL_PLATFORM_RISCOS(3)
π SDL_PLATFORM_RISCOS π
okay bestie, buckle up, because we're talking about a preprocessor macro from the SDL3 FUNCTIONS squad, and she is niche in the most iconic way possible π
SDL_PLATFORM_RISCOS is a preprocessor macro that is only defined if you're compiling for RISC OS. that's it. that's the whole vibe. no cap. it's giving "you know if you know" β iykyk π¦
β¨ SYNOPSIS β¨
first, you gotta pull in the header, like always:
#include <SDL3/SDL_platform_defines.h>
and then β boom β the macro itself:
#define SDL_PLATFORM_RISCOS 1
that 1 is doing main character energy, fr fr. when you're on RISC OS, this bad boy exists and equals 1. when you're not, she's simply not there. ghosted. π
π AVAILABILITY π
she's been around since SDL 3.2.0. so if you're on anything older, sorry bestie, no macro for you π
lowkey important: this is a compile-time situation β it's decided by what you're compiling for, not by anything that happens at runtime. the preprocessor does the vibe check, not the program π
and that's the whole page, periodt π
sign-off time, besties: this little legend lives in the Simple Directmedia Layer docs, specifically the SDL 3.4.18 version of the man pages π«Ά go forth and #ifdef responsibly, you gorgeous nerd πΈπ
π¦ 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