patch_seq_take_error

Function patch_seq_take_error 

Source
#[unsafe(no_mangle)]
pub extern "C" fn patch_seq_take_error() -> *const i8
Expand description

Take (and clear) the last error, returning it as a C string (FFI-safe)

Returns null if no error is pending.

ยงWARNING: Pointer Lifetime

The returned pointer is only valid until the next call to set_runtime_error, get_error, take_error, or clear_error. Callers must copy the string immediately if they need to retain it.