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.

\param data a pointer to the SDL_AssertData structure corresponding to the current assertion \param userdata what was passed as userdata to SDL_SetAssertionHandler() \returns an SDL_AssertState value indicating how to handle the failure.

Aliased Type§

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.