Skip to main content

PounceErrorString

Function PounceErrorString 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn PounceErrorString( code: c_int, ) -> *const c_char
Expand description

The message for a POUNCE_OK / POUNCE_ERR_* code, as a static NUL-terminated string the caller must not free; "unknown error code" for any other value. Never NULL.

Only the shared codes are covered: a non-negative function-specific result (a QP status, an AddPounceComplementsConstraint outcome) other than POUNCE_OK reads as unknown.

ยงSafety

None required: any code is accepted. It is unsafe only to match the rest of the exported surface.