XPLMError_f

Type Alias XPLMError_f 

Source
pub type XPLMError_f = Option<unsafe extern "C" fn(inMessage: *const c_char)>;
Expand description

XPLMError_f

An XPLM error callback is a function that you provide to receive debugging information from the plugin SDK. See XPLMSetErrorCallback for more information. NOTE: for the sake of debugging, your error callback will be called even if your plugin is not enabled, allowing you to receive debug info in your XPluginStart and XPluginStop callbacks. To avoid causing logic errors in the management code, do not call any other plugin routines from your error callback - it is only meant for catching errors in the debugging.

Aliased Type§

pub enum XPLMError_f {
    None,
    Some(unsafe extern "C" fn(*const i8)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*const i8))

Some value of type T.