File:  [RetroPC.NET] / np2 / x11 / trace.h
Revision 1.3: download - view: text, annotated - select for diffs
Wed Jan 14 01:29:11 2004 JST (21 years, 9 months ago) by monaka
Branches: MAIN
CVS tags: VER_0_74, VER_0_73, HEAD
change VERBOSE(s) macro.

#ifndef	NP2_X11_TRACE_H__
#define	NP2_X11_TRACE_H__

#ifndef TRACE

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

#else

#ifdef	__cplusplus
extern "C" {
#endif

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

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

#ifdef	__cplusplus
};
#endif

#endif

#endif	/* NP2_X11_TRACE_H__ */

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