logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Availability

       This function is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.10                       SDL_EnterAppMainCallbacks(3)

Description

       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.

Function Parameters

argc   standard Unix main argc.

       argv   standard Unix main argv.

       appinit
              the application's SDL_AppInit
               function.

       appiter
              the application's SDL_AppIterate
               function.

       appevent
              the application's SDL_AppEvent
               function.

       appquit
              the application's SDL_AppQuit
               function.

Header File

       Defined in SDL3/SDL_main.h

Name

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

Return Value

       Returns standard Unix main return value.

Synopsis

#include"SDL3/SDL.h"intSDL_EnterAppMainCallbacks(intargc,char*argv[],SDL_AppInit_funcappinit,SDL_AppIterate_funcappiter,SDL_AppEvent_funcappevent,SDL_AppQuit_funcappquit);

Thread Safety

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

       SDL_main .

See Also