#ifdef __cplusplus
extern "C" {
#endif
#ifndef H_SCCSID
#include <sccs.h>
#endif /* ~H_SCCSID */
H_SCCSID(@(#)debug.h	1.8	AIX)	/* Modified 9/16/89 22:41:53 */
/* H_SCCSID(@(#)debug.h	1.2	LCC)	/* Modified: 17:45:57 3/22/88 */
/* 
* (C) Copyright IBM Corp. 1989, 1989
 * All Rights Reserved 
 * Licensed Materials - Property of IBM 
 */

/* 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
#ifdef __cplusplus
#include <stdio.h>
#endif
#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
#ifdef __cplusplus
}
#endif
