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.
Parameter: data a pointer to the SDL_AssertData structure corresponding to the
current assertion.
Parameter: userdata what was passed as userdata to SDL_SetAssertionHandler().
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.
Available Since: 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.