00001 #ifndef _ERROR_H 00002 #define _ERROR_H 1 00003 00004 #ifdef __cplusplus 00005 extern "C" { 00006 #endif 00007 00008 00009 #define E_WARNING 0 00010 #define E_FATAL 1 00011 #define E_CAUTION 2 00012 #define E_INFORMATION 3 00013 #define E_MEMORY 4 00014 00015 extern void libcgi_error(int error_code, const char *msg, ...); 00016 extern const char *libcgi_error_type[]; 00017 00018 #ifdef __cplusplus 00019 } 00020 #endif 00021 00022 #endif