Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/nico/src/debug.h @ 3250

Last change on this file since 3250 was 3238, checked in by bensch, 20 years ago

orxonox/branches: updated branches: buerli, nico, sound. And moved bezierTrack to old.bezierTrack. Conflicts resolved in a usefull order.
Conflics mostly resolved in favor of trunk
merge.

File size: 849 bytes
Line 
1#ifndef _DEBUG_H
2#define _DEBUG_H
3
4#ifdef  DEBUG
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__) && printf
12#else
13#define PRINTF1 //
14#endif
15     
16#if DEBUG >= 2
17#define PRINTF2 \
18     if (verbose >= 2 ) \
19       printf("%s:%d::", __FILE__, __LINE__) && printf
20         
21#else
22#define PRINTF2 //
23#endif
24     
25#if DEBUG >= 3
26#define PRINTF3 \
27     if (verbose >= 3 ) \
28       printf("%s:%d::", __FILE__, __LINE__) && printf
29#else
30#define PRINTF3 //
31#endif
32     
33#if DEBUG >= 4
34#define PRINTF4 \
35     if (verbose >= 4 ) \
36       printf("%s:%d::", __FILE__, __LINE__) && printf
37#else
38#define PRINTF4 //
39#endif
40     
41     
42#else 
43#define PRINTF(x) //
44#endif
45
46#define PRINTF0 \
47    printf("%s:%d::", __FILE__, __LINE__) && printf
48
49#endif /* _DEBUG_H */
Note: See TracBrowser for help on using the repository browser.