Function SDL_GetDefaultAssertionHandler

pub unsafe extern "C" fn SDL_GetDefaultAssertionHandler() -> Option<unsafe extern "C" fn(_: *const SDL_AssertData, _: *mut c_void) -> SDL_AssertState> 
Available on crate feature dep_sdl3 only.
Expand description

Get the default assertion handler.

This returns the function pointer that is called by default when an assertion is triggered. This is an internal function provided by SDL, that is used for assertions when SDL_SetAssertionHandler() hasn’t been used to provide a different function.

§Return value

Returns the default SDL_AssertionHandler that is called when an assert triggers.

§Thread safety

It is safe to call this function from any thread.

§Availability

This function is available since SDL 3.2.0.

§See also