Changeset 5075 in orxonox.OLD for trunk/src/defs
- Timestamp:
- Aug 19, 2005, 3:21:27 AM (19 years ago)
- Location:
- trunk/src/defs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/defs/debug.h
r5048 r5075 27 27 28 28 #include "confincl.h" 29 #include "shell.h" 29 30 30 31 #include <stdio.h> … … 97 98 #define PRINTFVDEBUG PRINTF5 98 99 100 //#ifdef 101 //#define PRINTF(x) PRINT(x) 102 #define PRINT_EXEC Shell::addBufferLineStatic 103 99 104 #ifdef DEBUG 100 105 … … 105 110 #define PRINTF1 \ 106 111 if (SOFT_DEBUG_LEVEL >= ERR) \ 107 printf("ERROR::%s:%d:", __FILE__, __LINE__) && printf112 printf("ERROR::%s:%d:", __FILE__, __LINE__) && PRINT_EXEC 108 113 #else 109 114 #define PRINTF1 if (NO) … … 113 118 #define PRINTF2 \ 114 119 if (SOFT_DEBUG_LEVEL >= WARN) \ 115 printf("WARNING::%s:%d:", __FILE__, __LINE__) && printf120 printf("WARNING::%s:%d:", __FILE__, __LINE__) && PRINT_EXEC 116 121 117 122 #else … … 122 127 #define PRINTF3 \ 123 128 if (SOFT_DEBUG_LEVEL >= INFO) \ 124 printf("INFO::%s:%d:", __FILE__, __LINE__) && printf129 printf("INFO::%s:%d:", __FILE__, __LINE__) && PRINT_EXEC 125 130 #else 126 131 #define PRINTF3 if (NO) … … 130 135 #define PRINTF4 \ 131 136 if (SOFT_DEBUG_LEVEL >= DEBUG) \ 132 printf("DEBUG::%s:%d:", __FILE__, __LINE__) && printf137 printf("DEBUG::%s:%d:", __FILE__, __LINE__) && PRINT_EXEC 133 138 #else 134 139 #define PRINTF4 if (NO) … … 138 143 #define PRINTF5 \ 139 144 if (SOFT_DEBUG_LEVEL >= vDEBUG) \ 140 printf("VERYDEBUG::%s:%d:", __FILE__, __LINE__) && printf145 printf("VERYDEBUG::%s:%d:", __FILE__, __LINE__) && PRINT_EXEC 141 146 #else 142 147 #define PRINTF5 if (NO) … … 148 153 149 154 #define PRINTF0 \ 150 printf("%s:%d::", __FILE__, __LINE__) && printf155 printf("%s:%d::", __FILE__, __LINE__) && PRINT_EXEC 151 156 152 157 … … 168 173 #define PRINT1 \ 169 174 if (SOFT_DEBUG_LEVEL >= ERR) \ 170 printf175 PRINT_EXEC 171 176 #else 172 177 #define PRINT1 if (NO) … … 176 181 #define PRINT2 \ 177 182 if (SOFT_DEBUG_LEVEL >= WARN) \ 178 printf183 PRINT_EXEC 179 184 180 185 #else … … 185 190 #define PRINT3 \ 186 191 if (SOFT_DEBUG_LEVEL >= INFO) \ 187 printf192 PRINT_EXEC 188 193 #else 189 194 #define PRINT3 if (NO) … … 193 198 #define PRINT4 \ 194 199 if (SOFT_DEBUG_LEVEL >= DEBUG) \ 195 printf200 PRINT_EXEC 196 201 #else 197 202 #define PRINT4 if (NO) … … 201 206 #define PRINT5 \ 202 207 if (SOFT_DEBUG_LEVEL >= vDEBUG) \ 203 printf("VERYDEBUG::%s:%d:", __FILE__, __LINE__) && printf208 PRINT_EXEC("VERYDEBUG::%s:%d:", __FILE__, __LINE__) && PRINT_EXEC 204 209 #else 205 210 #define PRINT5 if (NO) … … 212 217 213 218 #define PRINT0 \ 214 printf219 PRINT_EXEC 215 220 216 221 #endif /* _DEBUG_H */ -
trunk/src/defs/stdincl.h
r4697 r5075 2 2 \file stdincl.h 3 3 \brief This file includes default headers that nearly every Class needs. 4 4 5 5 no Class is defined here, but many headers to classes, and more general Headers like the openGL-header. 6 6 */ … … 23 23 24 24 #include "error.h" 25 #include "debug.h"26 25 #include "globals.h" 27 26
Note: See TracChangeset
for help on using the changeset viewer.