Annotation of MiNT/src/debug.h, revision 1.1.1.1

1.1       root        1: extern int debug_level;                                /* in debug.c */
                      2: 
                      3: extern int debug_logging;                      /* in debug.c */
                      4: 
                      5: 
                      6: 
                      7: #define FORCE_LEVEL 0
                      8: 
                      9: #define ALERT_LEVEL 1
                     10: 
                     11: #define DEBUG_LEVEL 2
                     12: 
                     13: #define TRACE_LEVEL 3
                     14: 
                     15: #define LOW_LEVEL 4
                     16: 
                     17: 
                     18: 
                     19: #ifndef DEBUG_INFO
                     20: 
                     21: 
                     22: 
                     23: # define TRACELOW(x)
                     24: 
                     25: # define TRACE(x)
                     26: 
                     27: # define DEBUG(x)
                     28: 
                     29: 
                     30: 
                     31: #else                         
                     32: 
                     33: 
                     34: 
                     35: # define TRACELOW(s) \
                     36: 
                     37:   do { if (debug_logging || (debug_level >= LOW_LEVEL)) \
                     38: 
                     39:          Tracelow s ; } while(0)
                     40: 
                     41: 
                     42: 
                     43: # define TRACE(s) \
                     44: 
                     45:   do { if (debug_logging || (debug_level >= TRACE_LEVEL)) \
                     46: 
                     47:          Trace s ; } while(0)
                     48: 
                     49: 
                     50: 
                     51: # define DEBUG(s) \
                     52: 
                     53:   do { if (debug_logging || (debug_level >= DEBUG_LEVEL)) \
                     54: 
                     55:          Debug s ; } while(0)
                     56: 
                     57: 
                     58: 
                     59: #endif /* DEBUG_INFO */
                     60: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.