Changeset 699 for code/branches/FICN/src/orxonox/core/Debug.h
- Timestamp:
- Dec 27, 2007, 4:58:52 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/core/Debug.h
r684 r699 68 68 69 69 #define PRINT_EXEC printf 70 //#define COUT_EXEC std::cout 71 #define COUT_EXEC orxonox::OutputHandler::getOutStream()70 #define COUT_EXEC(x) \ 71 orxonox::OutputHandler::getOutStream().setOutputLevel(x) 72 72 73 73 #ifndef PRINTF … … 207 207 #define COUT1 \ 208 208 if (getSoftDebugLevel() >= ORX_ERROR) \ 209 COUT_EXEC 209 COUT_EXEC(1) 210 210 #else 211 211 #define COUT1 if (ORX_NONE)\ 212 COUT_EXEC 212 COUT_EXEC(1) 213 213 #endif 214 214 … … 216 216 #define COUT2 \ 217 217 if (getSoftDebugLevel() >= ORX_WARNING) \ 218 COUT_EXEC 218 COUT_EXEC(2) 219 219 #else 220 220 #define COUT2 if (ORX_NONE) \ 221 COUT_EXEC 221 COUT_EXEC(2) 222 222 #endif 223 223 … … 225 225 #define COUT3 \ 226 226 if (getSoftDebugLevel() >= ORX_INFO) \ 227 COUT_EXEC 227 COUT_EXEC(3) 228 228 #else 229 229 #define COUT3 if (ORX_NONE) \ 230 COUT_EXEC 230 COUT_EXEC(3) 231 231 #endif 232 232 … … 234 234 #define COUT4 \ 235 235 if (getSoftDebugLevel() >= ORX_DEBUG) \ 236 COUT_EXEC 236 COUT_EXEC(4) 237 237 #else 238 238 #define COUT4 if (ORX_NONE) \ 239 COUT_EXEC 239 COUT_EXEC(4) 240 240 #endif 241 241 … … 243 243 #define COUT5 \ 244 244 if (getSoftDebugLevel() >= ORX_vDEBUG) \ 245 COUT_EXEC 245 COUT_EXEC(5) 246 246 #else 247 247 #define COUT5 if (ORX_NONE) \ 248 COUT_EXEC 248 COUT_EXEC(5) 249 249 #endif 250 250 251 251 #else /* if ORX_PRINT_DEBUG_OUTPUT */ 252 252 #define COUT(x) if (ORX_NONE) \ 253 COUT_EXEC 253 COUT_EXEC(5) 254 254 #endif /* if ORX_PRINT_DEBUG_OUTPUT */ 255 255 256 256 #define COUT0 \ 257 COUT_EXEC 257 COUT_EXEC(0) 258 258 #endif /* ifndef COUT */ 259 259
Note: See TracChangeset
for help on using the changeset viewer.