SDL_PLATFORM_XBOXSERIES(3)

πŸ’– SDL_PLATFORM_XBOXSERIES πŸ’–

okay so bestie, welcome to SDL_PLATFORM_XBOXSERIES β€” a preprocessor macro from the SDL3 functions crew, and it's giving very exclusive guest list energy. πŸŽ€

✨ NAME ✨

SDL_PLATFORM_XBOXSERIES β€” a preprocessor macro that is only defined if you're compiling for Xbox Series. that's it. that's the whole vibe. no cap. πŸ’…


🌸 SYNOPSIS 🌸

like, here's literally how you get it in:

#include <SDL3/SDL_platform_defines.h>

#define SDL_PLATFORM_XBOXSERIES 1

so you pull in the header, and the macro is just sitting there defined as 1. iconic behavior honestly. ✨


πŸ¦‹ AVAILABILITY πŸ¦‹

this macro has been available since SDL 3.2.0. so if you're on anything older, sorry babe, she's not there yet. πŸ™ˆ

ngl, if you're not compiling for Xbox Series, this macro is simply not defined β€” so guard your code accordingly, bestie. don't come for me when the #ifdef says no. πŸ’€

and that's the whole page!! shoutout to the Simple Directmedia Layer girlies and to SDL 3.4.18 for making this lil manpage happen 🫢 you ate, fr fr. mwah πŸ’‹πŸŒŸ

πŸ“¦ where this page comes from