SDL_PLATFORM_TVOS(3)

πŸ’– SDL_PLATFORM_TVOS(3) β€” SDL3 FUNCTIONS πŸ’–

okay bestie, gather round, because this one is short but it's iconic. this is the page for SDL_PLATFORM_TVOS, a preprocessor macro that only exists if you're compiling for tvOS. that's it. that's the whole vibe. πŸŽπŸ“Ί


✨ NAME ✨

SDL_PLATFORM_TVOS β€” a preprocessor macro that is only defined if compiling for tvOS.

no cap. if you're not building for tvOS, this macro literally does not exist, so don't come for her. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <SDL3/SDL_platform_defines.h>

#define SDL_PLATFORM_TVOS 1

so you pull in the platform defines header, and boom β€” when the vibes are right (aka you're on tvOS), the macro is sitting there at 1. πŸ¦‹


🌸 AVAILABILITY 🌸

this macro is available since SDL 3.2.0. so if you're on anything older… girl, upgrade. 😭


πŸ‘‘ SEE ALSO πŸ‘‘

  • SDL_PLATFORM_APPLE(3) β€” the sibling, the bestie, the other platform macro you should also go read. 🫢

and that's the whole page, periodt. tiny page, huge main character energy. ✨

this has been Simple Directmedia Layer, SDL 3.4.18, page SDL_PLATFORM_TVOS(3) β€” mwah, love u, go compile something cute. πŸ’–πŸŒˆπŸŽ€

πŸ“¦ where this page comes from