23 #ifndef BAGEL_BOFLIB_ERROR_H 24 #define BAGEL_BOFLIB_ERROR_H 26 #include "common/str.h" 46 #define ERROR_CODE ErrorCode 49 extern const char *
const g_errList[];
50 #define errList g_errList 73 void reportError(ErrorCode errCode,
const char *format, ...);
81 static void fatalError(ErrorCode errCode,
const char *format, ...);
83 bool errorOccurred()
const {
84 return _errCode != ERR_NONE;
86 ErrorCode getErrorCode()
const {
93 static void initialize();
95 static int getErrorCount() {
void reportError(ErrorCode errCode, const char *format,...)
ErrorCode
Definition: error.h:47
static void fatalError(ErrorCode errCode, const char *format,...)