Changeset 4373 in orxonox.OLD for orxonox/trunk
- Timestamp:
- May 29, 2005, 10:50:14 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/defs/debug.h
r4354 r4373 35 35 #define WARN 2 36 36 #define INFO 3 37 #define DEBUG ING438 #define vDEBUG ING537 #define DEBUG 4 38 #define vDEBUG 5 39 39 40 40 extern int verbose; … … 82 82 #endif /* DEBUG_SPECIAL_MODULE */ 83 83 #endif /* MODULAR_DEBUG */ 84 84 85 /////////////////////////////////////////////////// 85 86 /// PRINTF: prints with filename and linenumber /// 86 87 /////////////////////////////////////////////////// 88 #define PRINTFNO PRINTF0 89 #define PRINTFERR PRINTF1 90 #define PRINTFWARN PRINTF2 91 #define PRINTFINFO PRINTF3 92 #define PRINTFDEBUG PRINTF4 93 #define PRINTFVDEBUG PRINTF5 87 94 88 95 #ifdef DEBUG … … 116 123 #endif 117 124 118 #if HARD_DEBUG_LEVEL >= DEBUG ING125 #if HARD_DEBUG_LEVEL >= DEBUG 119 126 #define PRINTF4 \ 120 if (SOFT_DEBUG_LEVEL >= DEBUG ING) \127 if (SOFT_DEBUG_LEVEL >= DEBUG) \ 121 128 printf("DEBUG::%s:%d:", __FILE__, __LINE__) && printf 122 129 #else … … 124 131 #endif 125 132 126 #if HARD_DEBUG_LEVEL >= vDEBUG ING133 #if HARD_DEBUG_LEVEL >= vDEBUG 127 134 #define PRINTF5 \ 128 if (SOFT_DEBUG_LEVEL >= vDEBUG ING) \135 if (SOFT_DEBUG_LEVEL >= vDEBUG) \ 129 136 printf("VERYDEBUG::%s:%d:", __FILE__, __LINE__) && printf 130 137 #else … … 143 150 /// PRINT: just prints output as is /// 144 151 /////////////////////////////////////////////////// 152 #define PRINTNO PRINT0 153 #define PRINTERR PRINT1 154 #define PRINTWARN PRINT2 155 #define PRINTINFO PRINT3 156 #define PRINTDEBUG PRINT4 157 #define PRINTVDEBUG PRINT5 158 145 159 #ifdef DEBUG 146 160 #define PRINT(x) \ … … 172 186 #endif 173 187 174 #if HARD_DEBUG_LEVEL >= DEBUG ING188 #if HARD_DEBUG_LEVEL >= DEBUG 175 189 #define PRINT4 \ 176 if (SOFT_DEBUG_LEVEL >= DEBUG ING) \190 if (SOFT_DEBUG_LEVEL >= DEBUG) \ 177 191 printf 178 192 #else … … 180 194 #endif 181 195 182 #if HARD_DEBUG_LEVEL >= vDEBUG ING196 #if HARD_DEBUG_LEVEL >= vDEBUG 183 197 #define PRINT5 \ 184 if (SOFT_DEBUG_LEVEL >= vDEBUG ING) \198 if (SOFT_DEBUG_LEVEL >= vDEBUG) \ 185 199 printf("VERYDEBUG::%s:%d:", __FILE__, __LINE__) && printf 186 200 #else … … 196 210 printf 197 211 198 ///////////////////////////////////////////////////199 /// COUT: simple cout print with verbose-check ///200 ///////////////////////////////////////////////////201 #ifdef DEBUG202 #define COUT(x) \203 COUT ## x204 205 #if HARD_DEBUG_LEVEL >= 1206 #define COUT1 \207 if (SOFT_DEBUG_LEVEL >= 1 ) \208 cout209 #else210 #define COUT1 if (NO) cout211 #endif212 213 #if HARD_DEBUG_LEVEL >= 2214 #define COUT2 \215 if (SOFT_DEBUG_LEVEL >= 2 ) \216 cout217 218 #else219 #define COUT2 if (NO) cout220 #endif221 222 #if HARD_DEBUG_LEVEL >= 3223 #define COUT3 \224 if (SOFT_DEBUG_LEVEL >= 3 ) \225 cout226 #else227 #define COUT3 if (NO) cout228 #endif229 230 #if HARD_DEBUG_LEVEL >= 4231 #define COUT4 \232 if (SOFT_DEBUG_LEVEL >= 4 ) \233 cout234 #else235 #define COUT4 if (NO) cout236 #endif237 238 239 #else240 #define COUT(x) if (NO) cout241 #endif242 243 #define COUT0 \244 cout245 246 212 #endif /* _DEBUG_H */
Note: See TracChangeset
for help on using the changeset viewer.