[][src]Macro sn_ffi_utils::ffi_result

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

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

The error must implement Debug + Display.