Last change
on this file since 3346 was
3345,
checked in by bensch, 20 years ago
|
orxonox/branches/parenting: :loadscreen: now uses texture-class
|
File size:
869 bytes
|
Rev | Line | |
---|
[3204] | 1 | #ifndef _DEBUG_H |
---|
| 2 | #define _DEBUG_H |
---|
| 3 | |
---|
| 4 | #ifdef DEBUG |
---|
[3345] | 5 | extern int verbose; |
---|
[3205] | 6 | #define PRINTF(x) \ |
---|
| 7 | PRINTF ## x |
---|
| 8 | |
---|
| 9 | #if DEBUG >= 1 |
---|
| 10 | #define PRINTF1 \ |
---|
| 11 | if (verbose >= 1 ) \ |
---|
[3212] | 12 | printf("%s:%d::", __FILE__, __LINE__) && printf |
---|
[3205] | 13 | #else |
---|
[3206] | 14 | #define PRINTF1 // |
---|
[3205] | 15 | #endif |
---|
| 16 | |
---|
| 17 | #if DEBUG >= 2 |
---|
| 18 | #define PRINTF2 \ |
---|
| 19 | if (verbose >= 2 ) \ |
---|
[3212] | 20 | printf("%s:%d::", __FILE__, __LINE__) && printf |
---|
[3206] | 21 | |
---|
[3205] | 22 | #else |
---|
[3206] | 23 | #define PRINTF2 // |
---|
[3205] | 24 | #endif |
---|
| 25 | |
---|
| 26 | #if DEBUG >= 3 |
---|
| 27 | #define PRINTF3 \ |
---|
| 28 | if (verbose >= 3 ) \ |
---|
[3212] | 29 | printf("%s:%d::", __FILE__, __LINE__) && printf |
---|
[3205] | 30 | #else |
---|
[3206] | 31 | #define PRINTF3 // |
---|
[3205] | 32 | #endif |
---|
| 33 | |
---|
| 34 | #if DEBUG >= 4 |
---|
| 35 | #define PRINTF4 \ |
---|
| 36 | if (verbose >= 4 ) \ |
---|
[3212] | 37 | printf("%s:%d::", __FILE__, __LINE__) && printf |
---|
[3205] | 38 | #else |
---|
[3206] | 39 | #define PRINTF4 // |
---|
[3205] | 40 | #endif |
---|
| 41 | |
---|
| 42 | |
---|
[3204] | 43 | #else |
---|
[3206] | 44 | #define PRINTF(x) // |
---|
[3204] | 45 | #endif |
---|
| 46 | |
---|
[3206] | 47 | #define PRINTF0 \ |
---|
[3212] | 48 | printf("%s:%d::", __FILE__, __LINE__) && printf |
---|
[3204] | 49 | |
---|
| 50 | #endif /* _DEBUG_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.