summaryrefslogtreecommitdiff
path: root/pstack/pstacktrace.h
blob: c884bcb9f87b9090e66342ed6f8de40ef3744ce5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* $Header$ */

/*
 * Debugging macros.
 */

#ifndef	pstacktrace_h_
#define	pstacktrace_h_

#define	PSTACK_DEBUG 1
#undef PSTACK_DEBUG

#ifdef PSTACK_DEBUG
#	define	TRACE_PUTC(a)		putc a
#	define	TRACE_FPUTS(a)		fputs a
#	define	TRACE_FPRINTF(a)	fprintf a
#else /* PSTACK_DEBUG */
#	define	TRACE_PUTC(a)		(void)0
#	define	TRACE_FPUTS(a)		(void)0
#	define	TRACE_FPRINTF(a)	(void)0
#endif /* !PSTACK_DEBUG */

#endif /* pstacktrace_h_ */