Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

SDL_MAIN_HANDLED - Inform SDL that the app is providing an entry point instead of SDL.

Availability

       This macro is used by the headers since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.10                                SDL_MAIN_HANDLED(3)

Description

       SDL  does  not define this macro, but will check if it is defined when including SDL_main.h . If defined,
       SDL will expect the app to provide the proper entry point for the  platform,  and  all  the  other  magic
       details needed, like manually calling SDL_SetMainReady .

       Please  see  [README/main-functions](README/main-functions),  (or  docs/README-main-functions.md  in  the
       source tree) for a more detailed explanation.

Header File

       Defined in SDL3/SDL_main.h

Name

       SDL_MAIN_HANDLED - Inform SDL that the app is providing an entry point instead of SDL.

Synopsis

#include"SDL3/SDL.h"#defineSDL_MAIN_HANDLED1

See Also