Changeset 4608 in orxonox.OLD for orxonox/trunk/src/defs
- Timestamp:
- Jun 12, 2005, 7:57:33 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/defs/debug.h
r4471 r4608 1 /* 1 /* 2 2 orxonox - the future of 3D-vertical-scrollers 3 3 … … 14 14 */ 15 15 16 /*! 16 /*! 17 17 \file debug.h 18 18 \brief Handles output to console for different Verbose-Modes. 19 19 20 20 There are two main modes HARD and SOFT. HARD is precessed during compileTime where SOFT is for runtime. 21 \li HARD: One can choose between different modes. see: // DEFINE_MODULES 21 \li HARD: One can choose between different modes. see: // DEFINE_MODULES 22 22 \li SOFT: If you want each module can have its own variable for processing. just pass it to DEBUG_MODULE_SOFT 23 */ 23 */ 24 24 25 25 #ifndef _DEBUG_H … … 35 35 #define WARN 2 36 36 #define INFO 3 37 #define DEBUG 437 //#define DEBUG 4 38 38 #define vDEBUG 5 39 39 … … 45 45 #define SOFT_DEBUG_LEVEL verbose 46 46 #else /* MODULAR_DEBUG */ 47 #ifndef DEBUG_MODULE_SOFT 47 #ifndef DEBUG_MODULE_SOFT 48 48 #define SOFT_DEBUG_LEVEL verbose 49 49 #else /* DEBUG_MODULE_SOFT */ … … 64 64 65 65 #define DEBUG_MODULE_IMPORTER 0 66 #define DEBUG_MODULE_TRACK_MANAGER 066 #define DEBUG_MODULE_TRACK_MANAGER 5 67 67 #define DEBUG_MODULE_GARBAGE_COLLECTOR 0 68 68 #define DEBUG_MODULE_OBJECT_MANAGER 0 … … 104 104 if (SOFT_DEBUG_LEVEL >= ERR) \ 105 105 printf("ERROR::%s:%d:", __FILE__, __LINE__) && printf 106 #else 106 #else 107 107 #define PRINTF1 if (NO) 108 108 #endif 109 109 110 110 #if HARD_DEBUG_LEVEL >= WARN 111 111 #define PRINTF2 \ 112 112 if (SOFT_DEBUG_LEVEL >= WARN) \ 113 113 printf("WARNING::%s:%d:", __FILE__, __LINE__) && printf 114 115 #else 114 115 #else 116 116 #define PRINTF2 if (NO) 117 117 #endif 118 118 119 119 #if HARD_DEBUG_LEVEL >= INFO 120 120 #define PRINTF3 \ 121 121 if (SOFT_DEBUG_LEVEL >= INFO) \ 122 122 printf("INFO::%s:%d:", __FILE__, __LINE__) && printf 123 #else 123 #else 124 124 #define PRINTF3 if (NO) 125 125 #endif 126 126 127 127 #if HARD_DEBUG_LEVEL >= DEBUG 128 128 #define PRINTF4 \ 129 129 if (SOFT_DEBUG_LEVEL >= DEBUG) \ 130 130 printf("DEBUG::%s:%d:", __FILE__, __LINE__) && printf 131 #else 131 #else 132 132 #define PRINTF4 if (NO) 133 133 #endif 134 134 135 135 #if HARD_DEBUG_LEVEL >= vDEBUG 136 136 #define PRINTF5 \ 137 137 if (SOFT_DEBUG_LEVEL >= vDEBUG) \ 138 138 printf("VERYDEBUG::%s:%d:", __FILE__, __LINE__) && printf 139 #else 139 #else 140 140 #define PRINTF5 if (NO) 141 141 #endif 142 143 #else 142 143 #else 144 144 #define PRINTF(x) if (NO) 145 145 #endif … … 164 164 165 165 #if HARD_DEBUG_LEVEL >= ERR 166 #define PRINT1 167 if (SOFT_DEBUG_LEVEL >= ERR) 168 printf 169 #else 166 #define PRINT1 \ 167 if (SOFT_DEBUG_LEVEL >= ERR) \ 168 printf 169 #else 170 170 #define PRINT1 if (NO) 171 171 #endif … … 176 176 printf 177 177 178 #else 178 #else 179 179 #define PRINT2 if (NO) 180 180 #endif … … 184 184 if (SOFT_DEBUG_LEVEL >= INFO) \ 185 185 printf 186 #else 186 #else 187 187 #define PRINT3 if (NO) 188 188 #endif … … 192 192 if (SOFT_DEBUG_LEVEL >= DEBUG) \ 193 193 printf 194 #else 194 #else 195 195 #define PRINT4 if (NO) 196 196 #endif … … 200 200 if (SOFT_DEBUG_LEVEL >= vDEBUG) \ 201 201 printf("VERYDEBUG::%s:%d:", __FILE__, __LINE__) && printf 202 #else 202 #else 203 203 #define PRINT5 if (NO) 204 204 #endif 205 205 206 206 207 #else 207 #else 208 208 #define PRINT(x) if (NO) 209 209 #endif
Note: See TracChangeset
for help on using the changeset viewer.