DOKK / manpages / debian 13 / libsdl3-doc / SDL_EnterAppMainCallbacks.3.en
SDL_EnterAppMainCallbacks(3) SDL3 FUNCTIONS SDL_EnterAppMainCallbacks(3)

SDL_EnterAppMainCallbacks - An entry point for SDL's use in SDL_MAIN_USE_CALLBACKS .

Defined in SDL3/SDL_main.h

#include "SDL3/SDL.h"
int SDL_EnterAppMainCallbacks(int argc, char *argv[], SDL_AppInit_func appinit, SDL_AppIterate_func appiter, SDL_AppEvent_func appevent, SDL_AppQuit_func appquit);

Generally, you should not call this function directly. This only exists to hand off work into SDL as soon as possible, where it has a lot more control and functionality available, and make the inline code in

SDL_main .h as small as possible.

Not all platforms use this, it's actual use is hidden in a magic header-only library, and you should not call this directly unless you _really_ know what you're doing.

standard Unix main argc.
standard Unix main argv.
the application's SDL_AppInit
function.
the application's SDL_AppIterate
function.
the application's SDL_AppEvent
function.
the application's SDL_AppQuit
function.

Returns standard Unix main return value.

It is not safe to call this anywhere except as the only function call in

SDL_main .

This function is available since SDL 3.2.0.

SDL 3.2.10 Simple Directmedia Layer