Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

SDL_MAIN_USE_CALLBACKS - Inform SDL to use the main callbacks instead of main.

Availability

       This macro is used by the headers since SDL 3.2.0.

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 several  functions:  SDL_AppInit,  SDL_AppEvent,  SDL_AppIterate,  and
       SDL_AppQuit.  The app should not provide a main function in this case, and doing so will likely cause the
       build to fail.

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

Name

       SDL_MAIN_USE_CALLBACKS - Inform SDL to use the main callbacks instead of main.

See Also

SDL_AppInit(3), SDL_AppEvent(3), SDL_AppIterate(3), SDL_AppQuit(3)

Simple Directmedia Layer                           SDL 3.2.20                          SDL_MAIN_USE_CALLBACKS(3)

Synopsis

#include<SDL3/SDL_main.h>#defineSDL_MAIN_USE_CALLBACKS1

See Also