00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef SOLAR_ERROR_H
00016 #define SOLAR_ERROR_H
00017
00018
00019
00020
00021 namespace Solar {
00022
00023
00024 extern void trace(const char *msg, ...);
00025 extern void error(const char *msg, ...);
00026 extern void fatal(const char *msg, ...);
00027
00028 #ifdef FAST
00029
00030 #define SOLAR_TRACE(x)
00031 #define SOLAR_ERROR(x)
00032 #define SOLAR_FATAL(x)
00033
00034 #else
00035
00036 #define SOLAR_TRACE(x) trace(x)
00037 #define SOLAR_ERROR(x) error(x)
00038 #define SOLAR_FATAL(x) fatal(x)
00039
00040 #endif
00041
00042 }
00043
00044
00045 #endif