SDL_PLATFORM_XBOXONE(3)
๐ SDL_PLATFORM_XBOXONE ๐
okay so bestie, this is a page from the SDL3 FUNCTIONS collection, and the whole thing is literally one tiny preprocessor macro. it's giving "short but iconic." ๐
โจ NAME โจ
SDL_PLATFORM_XBOXONE โ a preprocessor macro that is only defined if you're compiling for Xbox One. no cap. that's it. that's the whole vibe. ๐ฎ๐
๐ธ SYNOPSIS ๐ธ
#include <SDL3/SDL_platform_defines.h>
#define SDL_PLATFORM_XBOXONE 1
like, you don't call it, you don't pass it anything, it's just... there. existing. slaying. โจ
๐ฆ DESCRIPTION ๐ฆ
so the way that this works is: SDL_PLATFORM_XBOXONE is a preprocessor macro, and it is only defined when you're compiling for Xbox One. that's the entire personality. ๐ซถ
if you're not building for Xbox One, this macro is just not gonna show up โ so like, don't go assuming it exists, because it will not come to your party. #ifdef it, bestie, or get humbled. ๐ญ
it lives in <SDL3/SDL_platform_defines.h>, and when it is defined, it's defined as 1. so a vibe check like #ifdef SDL_PLATFORM_XBOXONE is the move. ๐ฅ
๐ AVAILABILITY ๐
this macro has been available since SDL 3.2.0. so if you're on something older than that, no Xbox One macro for you, sorry not sorry. ๐
lowkey a reminder that preprocessor macros are all-or-nothing โ either the macro is defined or it isn't. there's no in-between, no "sort of defined," none of that. it's binary, periodt. ๐
๐ SEE ALSO ๐
there's no SEE ALSO section in this one, bestie. it's a one-macro page. we keep it minimal. minimal is a vibe. โญ
okay that's the whole page!! mwah ๐
this lil cutie is brought to you by Simple Directmedia Layer โ SDL 3.4.18, and yes she's from the SDL3 FUNCTIONS era, signed, sealed, documented. go forth and #ifdef responsibly, my love. ๐ง๐๐
๐ฆ 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