SDL_AssertionHandler(3type)

SDL_AssertionHandler3type

A callback that fires when an sdl assertion fails.

Usage

#include "SDL3/SDL.h"

typedef SDL_AssertState (SDLCALL *SDL_AssertionHandler)( const SDL_AssertData *data, void *userdata);

Header file

Defined in SDL3/SDL_assert.h

Function parameters

data

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

userdata

what was passed as userdata to SDL_SetAssertionHandler ().

Return value

Returns an SDL_AssertState
value indicating how to handle the failure.

Thread safety

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

Availability

This datatype is available since SDL 3.2.0.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.