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.

§Parameters

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

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