SDL_PLATFORM_EMSCRIPTEN(3)
β¨ SDL_PLATFORM_EMSCRIPTEN β¨
okay bestie, welcome to the SDL_PLATFORM_EMSCRIPTEN page from the SDL3 FUNCTIONS manual π this one's a little baby page but she's iconic and she matters, so let's give her the main character energy she deserves π
πΈ NAME πΈ
SDL_PLATFORM_EMSCRIPTEN β a preprocessor macro that is only defined if you're compiling for Emscripten. that's it. that's the whole vibe. π¦
π SYNOPSIS π
#include <SDL3/SDL_platform_defines.h>
#define SDL_PLATFORM_EMSCRIPTEN 1
so you pull in the header, and the macro itself is just literally defined as 1. no arguments, no drama, no notes. periodt. β¨
π«Ά AVAILABILITY π«Ά
this macro has been around since SDL 3.2.0 β so if you're on anything older, she's not there yet, no cap. π
π reminder bestie: this is a preprocessor macro, so it's checked at compile time, not runtime. if you're not building for Emscripten, the macro simply won't exist β so wrap anything that depends on her in a check, iykyk π
and that's the whole page, you ate that π go forth and compile for the web, my little emscripten queen π
this adorable lil page comes to you from Simple Directmedia Layer, living in SDL 3.4.18 β mwah, catch you on the next manpage ππ
π¦ 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