Changeset 3205 in orxonox.OLD for orxonox/trunk/src
- Timestamp:
- Dec 17, 2004, 7:27:59 PM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/debug.h
r3204 r3205 3 3 4 4 #ifdef DEBUG 5 #define PRINTF(x) \ 6 if (verbose >= x ) \ 7 printf ("%s:%d:", __FILE__, __LINE__); \ 8 if (verbose >= x) printf 5 #define PRINTF(x) \ 6 PRINTF ## x 7 8 #if DEBUG >= 1 9 #define PRINTF1 \ 10 if (verbose >= 1 ) \ 11 printf ("%s:%d:", __FILE__, __LINE__); \ 12 if (verbose >= 1) printf 13 #else 14 #define PRINTF1 15 #endif 16 17 #if DEBUG >= 2 18 #define PRINTF2 \ 19 if (verbose >= 2 ) \ 20 printf ("%s:%d:", __FILE__, __LINE__); \ 21 if (verbose >= 2) printf 22 #else 23 #define PRINTF2 24 #endif 25 26 #if DEBUG >= 3 27 #define PRINTF3 \ 28 if (verbose >= 3 ) \ 29 printf ("%s:%d:", __FILE__, __LINE__); \ 30 if (verbose >= 3) printf 31 #else 32 #define PRINTF3 33 #endif 34 35 #if DEBUG >= 4 36 #define PRINTF4 \ 37 if (verbose >= 4 ) \ 38 printf ("%s:%d:", __FILE__, __LINE__); \ 39 if (verbose >= 4) printf 40 #else 41 #define PRINTF4 42 #endif 43 44 9 45 #else 10 46 #define PRINTF(x) 11 47 #endif 12 48 -
orxonox/trunk/src/importer/framework.cc
r3204 r3205 51 51 int main(int argc, char *argv[]) 52 52 { 53 int verbose = 2;54 55 PRINTF( 1)("This is The big verbose-Test %i, %s\n", 1, "cool");53 int verbose = 3; 54 55 PRINTF(2)("This is The big verbose-Test %i, %s\n", 1, "cool"); 56 56 57 57 Uint8* keys; // This variable will be used in the keyboard routine
Note: See TracChangeset
for help on using the changeset viewer.