Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3205 in orxonox.OLD for orxonox/trunk/src/debug.h


Ignore:
Timestamp:
Dec 17, 2004, 7:27:59 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: DEBUG implemented in the configure-files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/debug.h

    r3204 r3205  
    33
    44#ifdef  DEBUG
    5  #define PRINTF(x) \
    6         if (verbose >= x ) \
    7            printf ("%s:%d:", __FILE__, __LINE__); \
    8         if (verbose >= x) printf
     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__); \
     12     if (verbose >= 1) 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__); \
     21     if (verbose >= 2) printf
     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__); \
     30     if (verbose >= 3) 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__); \
     39     if (verbose >= 4) printf
     40#else
     41#define PRINTF4
     42#endif
     43     
     44     
    945#else 
    10  #define PRINTF(x)
     46#define PRINTF(x)
    1147#endif
    1248
Note: See TracChangeset for help on using the changeset viewer.