Skip to main content

SDL_AssertionHandler

Type Alias SDL_AssertionHandler 

Source
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§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*const SDL_AssertData, *mut c_void) -> SDL_AssertState)

Some value of type T.