File:  [RetroPC.NET] / np2 / x11 / trace.h
Revision 1.7: download - view: text, annotated - select for diffs
Sun Jan 16 04:16:58 2011 JST (14 years, 9 months ago) by monaka
Branches: MAIN
CVS tags: HEAD
use G_BEGIN_DECLS/G_END_DECLS.

#ifndef	NP2_X11_TRACE_H__
#define	NP2_X11_TRACE_H__

G_BEGIN_DECLS

extern int trace_flag;

void trace_init(void);
void trace_term(void);
void trace_fmt(const char *str, ...) G_GNUC_PRINTF(1, 2);

#ifndef TRACE

#define	TRACEINIT()
#define	TRACETERM()
#define	TRACEOUT(a)
#ifndef	VERBOSE
#define	VERBOSE(s)
#endif

#else	/* TRACE */

#define	TRACEINIT()	trace_init()
#define	TRACETERM()	trace_term()
#define	TRACEOUT(arg)	trace_fmt arg
#ifndef	VERBOSE
#define	VERBOSE(arg)	if (trace_flag) trace_fmt arg
#endif

#endif	/* !TRACE */

G_END_DECLS

#endif	/* NP2_X11_TRACE_H__ */

RetroPC.NET-CVS <cvs@retropc.net>