NetBSD/sys/netiso/xebec/debug.h
cbiere b64481fed4 * Fixed use of fgetc() in getch().
* Check for non-ASCII characters in getch() because the rest of the code
   doesn't expect such.
 * Removed use of -traditional and constructs which relied on this.
 * Use raise(SIGFPE) in dump() instead of attempting a division-by-zero.
 * Fixed compiler warnings regarding missing prototypes or unused
   parameters.
2007-01-18 12:43:38 +00:00

22 lines
326 B
C

/* $NetBSD: debug.h,v 1.8 2007/01/18 12:43:38 cbiere Exp $ */
#define OUT stdout
extern int debug[128];
#ifdef DEBUG
extern int column;
#define IFDEBUG(letter) \
if(debug['letter']) {
#define ENDDEBUG ; (void) fflush(stdout);}
#else
#define STAR *
#define IFDEBUG(letter) {
#define ENDDEBUG ; }
#endif /* DEBUG */