SDL_PLATFORM_ANDROID(3)
β¨ SDL_PLATFORM_ANDROID β¨
okay so bestie, this is a page from the SDL3 FUNCTIONS manual, and today's main character is SDL_PLATFORM_ANDROID π
πΈ NAME πΈ
SDL_PLATFORM_ANDROID β a preprocessor macro that is only defined if you're compiling for Android. that's it. that's the whole vibe. π«Ά
π SYNOPSIS π
#include <SDL3/SDL_platform_defines.h>
#define SDL_PLATFORM_ANDROID 1
so you pull in the header, and if the universe (and your compiler) says "yes, Android", then boom β SDL_PLATFORM_ANDROID is defined, and its value is literally 1. no cap. π
π¦ AVAILABILITY π¦
this macro has been around since SDL 3.2.0. she's not new new, but she's not ancient either. iconic behavior honestly. π
pro tip from your girl: this is a compile-time check, so don't go trying to use it at runtime β the preprocessor already decided your fate before your program even existed. π
Simple Directmedia Layer β’ SDL 3.4.18 β that's the source and the version this page came from, mwah π k bye, go compile something cute for Android, ily! πβ¨π¦
π¦ 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