DOKK / manpages / debian 13 / libsdl3-doc / SDL_AssertionHandler.3type.en
SDL_AssertionHandler(3type) SDL3 DATATYPES SDL_AssertionHandler(3type)

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

Defined in SDL3/SDL_assert.h

#include "SDL3/SDL.h"
typedef SDL_AssertState (SDLCALL *SDL_AssertionHandler)( const SDL_AssertData *data, void *userdata);

a pointer to the SDL_AssertData
structure corresponding to the current assertion.
what was passed as userdata to SDL_SetAssertionHandler ().

Returns an SDL_AssertState
value indicating how to handle the failure.

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

This datatype is available since SDL 3.2.0.

SDL 3.2.10 Simple Directmedia Layer