Synopsis
#include <liblod.h>
const char *
lod_errmsg
(LODCONTEXT *context
);
Description
lod_errmsg
returns a pointer to either static
buffer, or a buffer allocated by the context, and which contains
a description of the error condition associated with the context.
Note that lod_errmsg
will always return a
valid string pointer, even if no error has actually occurred. In
circumstances where the return value of a previous call does not
unambigiously indicate that an error did occur, use
lod_error
to determine whether an error
condition is associated with the context before calling
lod_errmsg
.
Warning
The pointer returned by lod_errmsg
becomes
invalid as soon as any other call involving the context (including
any instance derived from it) is made.
Return value
A pointer to a constant string describing the error condition associated with the context.