Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/parenting/src/debug.h @ 3354

Last change on this file since 3354 was 3345, checked in by bensch, 20 years ago

orxonox/branches/parenting: :loadscreen: now uses texture-class

File size: 869 bytes
Line 
1#ifndef _DEBUG_H
2#define _DEBUG_H
3
4#ifdef  DEBUG
5extern int verbose;
6#define PRINTF(x) \
7           PRINTF ## x
8
9#if DEBUG >= 1
10#define PRINTF1 \
11    if (verbose >= 1 ) \
12      printf("%s:%d::", __FILE__, __LINE__) && 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__) && printf
21         
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__) && printf
30#else
31#define PRINTF3 //
32#endif
33     
34#if DEBUG >= 4
35#define PRINTF4 \
36     if (verbose >= 4 ) \
37       printf("%s:%d::", __FILE__, __LINE__) && printf
38#else
39#define PRINTF4 //
40#endif
41     
42     
43#else 
44#define PRINTF(x) //
45#endif
46
47#define PRINTF0 \
48    printf("%s:%d::", __FILE__, __LINE__) && printf
49
50#endif /* _DEBUG_H */
Note: See TracBrowser for help on using the repository browser.