Function imageflow::imageflow_context_raise_error [] [src]

#[no_mangle]
pub unsafe extern fn imageflow_context_raise_error(context: *mut Context,
                                                   error_code: i32,
                                                   message: *const c_char,
                                                   filename: *const c_char,
                                                   line: i32,
                                                   function_name: *const c_char)
                                                   -> bool

Raises an error on the context.

Returns true on success, false if an error was already present.

Designed to be safe(ish) for use in out-of-memory scenarios; no additional allocations are made.

See imageflow_context_error_code for a list of error codes.

Expectations

Caveats