33 extern const char * _errName;
45 bool errSet(uint32_t code,
const char * error,
const char * name);
51 #define _errSet(CODE, ERROR) \
52 errSet(CODE, ERROR __FILE__ "(" STR(__LINE__) ")" )
119 if (err)
return true;
bool errHas()
Returns whether there is an error pending.
const char * errGetDescr()
Returns the last error description, if any, else null.
void errFatal()
Prints the last error and halts the system.
static bool errCondRebase(bool err, const char *name)
Transparent conditional error rebase.
void errPrint(bool clear)
Prints the last error.
void errClear()
Clears the current error.
uint32_t errGet()
Returns the last error code, or null.
static bool errRebase(const char *name)
Rebases the cause of the error message.
bool errSet(uint32_t code, const char *error, const char *name)
Sets an error.
const char * errGetName()
Returns the last error cause name, or null.