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