patch_seq_get_error

Function patch_seq_get_error 

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

Get the last error message as a C string pointer (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.