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_AssertionHandler - A callback that fires when an SDL assertion fails.

Availability

       This datatype is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.20                        SDL_AssertionHandler(3type)

Function Parameters

data   a pointer to the SDL_AssertData structure corresponding to the current assertion.

       userdata
              what was passed as userdata to SDL_SetAssertionHandler().

Name

       SDL_AssertionHandler - A callback that fires when an SDL assertion fails.

Return Value

       Returns an SDL_AssertState value indicating how to handle the failure.

Synopsis

#include<SDL3/SDL_assert.h>typedefSDL_AssertState(SDLCALL*SDL_AssertionHandler)(constSDL_AssertData*data,void*userdata);

Thread Safety

       This callback may be called from any thread that triggers an assert at any time.

See Also