Skip to main content

lumen_last_error_global

Function lumen_last_error_global 

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

Returns the most recent error message recorded by any thread. May return null if no error has ever been recorded. The returned pointer is valid until the next lumen_* call anywhere in the process that produces an error.

Distinguished from lumen_last_error for embedders that explicitly want the global slot and don’t want the TLS fallback.