Scroll to navigation

SDL_MAIN_AVAILABLE(3) SDL3 FUNCTIONS SDL_MAIN_AVAILABLE(3)

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

This won't be defined otherwise. If defined, SDL's headers will redefine main to SDL_main.

This macro is defined by SDL_main.h, which is not automatically included by SDL.h.

Even if available, an app can define SDL_MAIN_HANDLED and provide their own, if they know what they're doing.

This macro is used internally by SDL, and apps probably shouldn't rely on it.

AVAILABILITY

This macro is available since SDL 3.2.0.

SDL 3.3.3 Simple Directmedia Layer