/*
 * 5799-WZQ (C) COPYRIGHT = NONE
 * LICENSED MATERIALS - PROPERTY OF IBM
 */
/* $Header:debug.h 12.0$ */
/* $ACIS:debug.h 12.0$ */
/* $Source: /ibm/acis/usr/src/include/RCS/debug.h,v $ */

#if !defined(lint) && !defined(LOCORE)  && defined(RCS_HDRS)
static char *rcsiddebug = "$Header:debug.h 12.0$";
#endif

/* A handy include file for debugging C code.  Debug code can be 
 * added/removed at compile time.
*/

int debug;		/* global. If !0, then print debug diagnostics */

#ifndef NDEBUG
#define PTRACE(level,x) if(debug >= level)\
	{\
	printf("\n\"%s\", line %d: ",__FILE__,__LINE__);\
	printf x;\
}
#define TRACEF(x) PTRACE(1,x)
#else
#define PTRACE(level,x)
#define TRACEF(x)
#endif
