Error

ErrorSetCargo

Store an application data pointer on the Error

Syntax

Signature
xBool       ErrorSetCargo( Error *error, void *cargo );

Arguments

error the Error object to change.

cargo the application data pointer, or NULL to clear it.

Return value

T on success, or F if the object is NULL.

Description

The error system does not use the cargo. The application manages the lifetime of the data.

See also