pub type SDL_AssertionHandler = Option<unsafe extern "C" fn(data: *const SDL_AssertData, userdata: *mut c_void) -> SDL_AssertState>;Expand description
A callback that fires when an SDL assertion fails.
§Parameters
data: a pointer to theSDL_AssertDatastructure corresponding to the current assertion.userdata: what was passed asuserdatatoSDL_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.
Aliased Type§
pub enum SDL_AssertionHandler {
None,
Some(unsafe extern "C" fn(*const SDL_AssertData, *mut c_void) -> SDL_AssertState),
}Variants§
None
No value.
Some(unsafe extern "C" fn(*const SDL_AssertData, *mut c_void) -> SDL_AssertState)
Some value of type T.