215 #ifndef WCSLIB_WCSERR 216 #define WCSLIB_WCSERR 225 const char *
function;
231 #define ERRLEN (sizeof(struct wcserr)/sizeof(int)) 243 const char *
file,
int line_no,
const char *format, ...);
248 #define WCSERR_SET(status) err, status, function, __FILE__, __LINE__ 254 #endif // WSCLIB_WCSERR char * msg
Definition: wcserr.h:227
int wcserr_enable(int enable)
Enable/disable error messaging.
Error message handling.
Definition: wcserr.h:222
int wcserr_prt(const struct wcserr *err, const char *prefix)
Print a wcserr struct.
int wcserr_copy(const struct wcserr *src, struct wcserr *dst)
Copy an error object.
const char * file
Definition: wcserr.h:226
int line_no
Definition: wcserr.h:224
int status
Definition: wcserr.h:223
int wcserr_set(struct wcserr **err, int status, const char *function, const char *file, int line_no, const char *format,...)
Fill in the contents of an error object.
int wcserr_clear(struct wcserr **err)
Clear a wcserr struct.