Changeset 3592 in orxonox.OLD for orxonox/trunk/src/defs
- Timestamp:
- Mar 17, 2005, 3:33:58 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/defs/debug.h
r3591 r3592 36 36 #define vDEBUGING 5 37 37 38 extern int verbose; 39 40 #ifndef MODULAR_DEBUG 41 #define HARD_DEBUG_LEVEL DEBUG 42 #else /* MODULAR_DEBUG */ 38 43 #ifndef DEBUG_SPECIAL_MODULE 39 extern int verbose; 40 #else 44 #define HARD_DEBUG_LEVEL DEBUG 45 #else /* DEBUG_SPECIAL_MODULE */ 41 46 // DEFINE MODULES \\ 42 47 #define DEBUG_MODULE_ORXONOX 0 … … 54 59 #define DEBUG_MODULE_NULL_PARENT 0 55 60 56 #define verbose DEBUG_SPECIAL_MODULE 57 58 #endif 61 62 #define HARD_DEBUG_LEVEL DEBUG_SPECIAL_MODULE 63 #endif /* DEBUG_SPECIAL_MODULE */ 64 #endif /* MODULAR_DEBUG */ 59 65 /////////////////////////////////////////////////// 60 66 /// PRINTF: prints with filename and linenumber /// … … 66 72 PRINTF ## x 67 73 68 #if DEBUG>= ERR74 #if HARD_DEBUG_LEVEL >= ERR 69 75 #define PRINTF1 \ 70 76 if (verbose >= ERR) \ … … 74 80 #endif 75 81 76 #if DEBUG>= WARN82 #if HARD_DEBUG_LEVEL >= WARN 77 83 #define PRINTF2 \ 78 84 if (verbose >= WARN) \ … … 83 89 #endif 84 90 85 #if DEBUG>= INFO91 #if HARD_DEBUG_LEVEL >= INFO 86 92 #define PRINTF3 \ 87 93 if (verbose >= INFO) \ … … 91 97 #endif 92 98 93 #if DEBUG>= DEBUGING99 #if HARD_DEBUG_LEVEL >= DEBUGING 94 100 #define PRINTF4 \ 95 101 if (verbose >= DEBUGING) \ … … 99 105 #endif 100 106 101 #if DEBUG>= vDEBUGING107 #if HARD_DEBUG_LEVEL >= vDEBUGING 102 108 #define PRINTF5 \ 103 109 if (verbose >= vDEBUGING) \ … … 122 128 PRINT ## x 123 129 124 #if DEBUG>= ERR130 #if HARD_DEBUG_LEVEL >= ERR 125 131 #define PRINT1 \ 126 132 if (verbose >= ERR) \ … … 130 136 #endif 131 137 132 #if DEBUG>= WARN138 #if HARD_DEBUG_LEVEL >= WARN 133 139 #define PRINT2 \ 134 140 if (verbose >= WARN) \ … … 139 145 #endif 140 146 141 #if DEBUG>= INFO147 #if HARD_DEBUG_LEVEL >= INFO 142 148 #define PRINT3 \ 143 149 if (verbose >= INFO) \ … … 147 153 #endif 148 154 149 #if DEBUG>= DEBUGING155 #if HARD_DEBUG_LEVEL >= DEBUGING 150 156 #define PRINT4 \ 151 157 if (verbose >= DEBUGING) \ … … 155 161 #endif 156 162 157 #if DEBUG>= vDEBUGING163 #if HARD_DEBUG_LEVEL >= vDEBUGING 158 164 #define PRINT5 \ 159 165 if (verbose >= vDEBUGING) \ … … 178 184 COUT ## x 179 185 180 #if DEBUG>= 1186 #if HARD_DEBUG_LEVEL >= 1 181 187 #define COUT1 \ 182 188 if (verbose >= 1 ) \ … … 186 192 #endif 187 193 188 #if DEBUG>= 2194 #if HARD_DEBUG_LEVEL >= 2 189 195 #define COUT2 \ 190 196 if (verbose >= 2 ) \ … … 195 201 #endif 196 202 197 #if DEBUG>= 3203 #if HARD_DEBUG_LEVEL >= 3 198 204 #define COUT3 \ 199 205 if (verbose >= 3 ) \ … … 203 209 #endif 204 210 205 #if DEBUG>= 4211 #if HARD_DEBUG_LEVEL >= 4 206 212 #define COUT4 \ 207 213 if (verbose >= 4 ) \
Note: See TracChangeset
for help on using the changeset viewer.