Skip to main content

ffi_result

Macro ffi_result 

Source
macro_rules! ffi_result {
    ($res:expr) => { ... };
}
Expand description

Convert a result into a pair of (error_code: i32, description: String) to be used in NativeResult.

The error must implement Debug + Display.