Last change
on this file since 3272 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
|
Line | |
---|
1 | #ifndef _DEBUG_H |
---|
2 | #define _DEBUG_H |
---|
3 | |
---|
4 | #include <stdio.h> |
---|
5 | |
---|
6 | #ifdef DEBUG |
---|
7 | #define PRINTF(x) \ |
---|
8 | PRINTF ## x |
---|
9 | |
---|
10 | #if DEBUG >= 1 |
---|
11 | #define PRINTF1 \ |
---|
12 | if (verbose >= 1 ) \ |
---|
13 | printf("%s:%d::", __FILE__, __LINE__) && printf |
---|
14 | #else |
---|
15 | #define PRINTF1 // |
---|
16 | #endif |
---|
17 | |
---|
18 | #if DEBUG >= 2 |
---|
19 | #define PRINTF2 \ |
---|
20 | if (verbose >= 2 ) \ |
---|
21 | printf("%s:%d::", __FILE__, __LINE__) && printf |
---|
22 | |
---|
23 | #else |
---|
24 | #define PRINTF2 // |
---|
25 | #endif |
---|
26 | |
---|
27 | #if DEBUG >= 3 |
---|
28 | #define PRINTF3 \ |
---|
29 | if (verbose >= 3 ) \ |
---|
30 | printf("%s:%d::", __FILE__, __LINE__) && 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__) && printf |
---|
39 | #else |
---|
40 | #define PRINTF4 // |
---|
41 | #endif |
---|
42 | |
---|
43 | |
---|
44 | #else |
---|
45 | #define PRINTF(x) // |
---|
46 | #endif |
---|
47 | |
---|
48 | #define PRINTF0 \ |
---|
49 | printf("%s:%d::", __FILE__, __LINE__) && printf |
---|
50 | |
---|
51 | #endif /* _DEBUG_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.