File:  [Atari MiNT] / MiNT / src / debug.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:58:40 2018 UTC (8 years, 1 month ago) by root
Branches: mint, MAIN
CVS tags: mint112, HEAD
MiNT 1.12

extern int debug_level;				/* in debug.c */

extern int debug_logging;			/* in debug.c */



#define FORCE_LEVEL 0

#define ALERT_LEVEL 1

#define DEBUG_LEVEL 2

#define TRACE_LEVEL 3

#define LOW_LEVEL 4



#ifndef DEBUG_INFO



# define TRACELOW(x)

# define TRACE(x)

# define DEBUG(x)



#else                         



# define TRACELOW(s) \

  do { if (debug_logging || (debug_level >= LOW_LEVEL)) \

         Tracelow s ; } while(0)



# define TRACE(s) \

  do { if (debug_logging || (debug_level >= TRACE_LEVEL)) \

         Trace s ; } while(0)



# define DEBUG(s) \

  do { if (debug_logging || (debug_level >= DEBUG_LEVEL)) \

         Debug s ; } while(0)



#endif /* DEBUG_INFO */


unix.superglobalmegacorp.com

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