SDL_PLATFORM_VITA(3)

πŸ’– SDL_PLATFORM_VITA πŸ’–

okay bestie, welcome to the SDL_PLATFORM_VITA page of the SDL3 functions manual, no cap 🫢

✨ NAME ✨

SDL_PLATFORM_VITA β€” a preprocessor macro that is only defined if you're compiling for Sony Vita. that's it, that's the whole vibe. it's giving "you are HERE" but for your build target πŸ’…


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_platform_defines.h>

#define SDL_PLATFORM_VITA 1

so you pull in the header, and if the universe (aka your compiler) says you're on a Vita, this macro just exists and equals 1. if you're not on a Vita? it's literally not there. not defined, not invited, not on the guest list πŸ™ˆ


πŸ¦‹ AVAILABILITY πŸ¦‹

this macro has been available since SDL 3.2.0. so if you're on anything older, bestie, i'm so sorry, it's not gonna show up for you 😭


heads up: since this is a preprocessor macro, you check it with #ifdef / #if defined(...) at compile time, not at runtime. vibe check happens before your program even exists, iykyk ⭐

Simple Directmedia Layer πŸŽ€ SDL 3.4.18 β€” that's the source and version this lil page came from, and honestly? slay. mwah, go compile something iconic πŸ‘‘πŸ’–βœ¨

πŸ“¦ where this page comes from