Skip to main content

pamoja_last_error_set

Function pamoja_last_error_set 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_last_error_set(message: *const c_char)
Expand description

Records the text a host callback wants attached to the status it returns.

Call it on the thread the callback is running on, before returning the status; pamoja reads it there and carries it to whoever made the call, where pamoja_last_error_message then reports it.

§Arguments

  • message - the description as null-terminated UTF-8, or null to clear it.

§Safety

message must be a valid null-terminated string, or null.