SDL_MAIN_AVAILABLE(3)
π SDL_MAIN_AVAILABLE(3) π
okay so bestie, welcome to the SDL3 FUNCTIONS manual page for SDL_MAIN_AVAILABLE. This macro is lowkey a little secret handshake between SDL and your platform's main, and we're gonna spill all the tea. β¨
β¨ NAME β¨
SDL_MAIN_AVAILABLEβ defined if the target platform offers a special mainline through SDL.
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_main.h>
#define SDL_MAIN_AVAILABLE
π DESCRIPTION π
So here's the vibe: this macro won't be defined otherwise. If it is defined, SDL's headers will redefine main to SDL_main. Not me, not you β the headers. π
It's defined by SDL_main.h, which is not automatically included by SDL.h. Like, you have to go get it yourself. No cap.
Even if it's available, an app can define SDL_MAIN_HANDLED and provide their own main, if they know what they're doing. Main character energy, honestly.
This macro is used internally by SDL, and apps probably shouldn't rely on it. So like, look but don't touch, bestie. π
π¦ AVAILABILITY π¦
This macro is available since SDL 3.2.0. Slay.
And that's the whole page, bestie. Brought to you by Simple Directmedia Layer, version SDL 3.4.18, and it's the SDL_MAIN_AVAILABLE(3) manual page. No date on the footer, she's timeless. ππ
π¦ 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