1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#ifndef ERROR_H #define ERROR_H typedef enum errorLevel { ERR_OTHER, ERR_INFO, ERR_WARNING, ERR_FATAL, } errorLevel; typedef struct error { errorLevel level; const char* traceback; const char* cause; } error; #endif /* ERROR_H */