00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef VEE_ERROR_H
00021 #define VEE_ERROR_H
00022
00023 #include <vee_config.h>
00024
00025 void VEE_setTraceStreamLock(void (*function)(bool));
00026
00027 void VEE_trace(const char *msg, ...);
00028 void VEE_error(const char *msg, ...);
00029 void VEE_fatal(const char *msg, ...);
00030
00031 #ifdef VEE_FAST
00032
00033 #define VEE_TRACE(x)
00034 #define VEE_ERROR(x)
00035 #define VEE_FATAL(x)
00036
00037 #else
00038
00039 #define VEE_TRACE(x) VEE_trace(x)
00040 #define VEE_ERROR(x) VEE_error(x)
00041 #define VEE_FATAL(x) VEE_fatal(x)
00042
00043 #endif
00044
00045 #ifdef __sgi
00046 #define VEE_FNAME static const char * fname = "__FILE__ __LINE__";
00047 #else
00048 #define VEE_FNAME static const char * fname = __FUNCTION__;
00049 #endif
00050
00051 #endif