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