|
|
| version 1.1.1.1, 2003/10/16 17:59:41 | version 1.5, 2004/08/07 19:06:01 |
|---|---|
| Line 1 | Line 1 |
| #ifndef NP2_X11_TRACE_H__ | |
| #ifndef TRACE | #define NP2_X11_TRACE_H__ |
| #define TRACEINIT() | |
| #define TRACETERM() | |
| #define TRACEOUT(a) | |
| #define VERBOSE(a) | |
| #else | |
| #ifdef __cplusplus | #ifdef __cplusplus |
| extern "C" { | extern "C" { |
| #endif | #endif |
| extern int trace_flag; | |
| void trace_init(void); | void trace_init(void); |
| void trace_term(void); | void trace_term(void); |
| void trace_fmt(const char *str, ...); | void trace_fmt(const char *str, ...); |
| #define TRACEINIT() trace_init() | #ifndef TRACE |
| #define TRACETERM() trace_term() | |
| #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 | #define TRACEOUT(arg) trace_fmt arg |
| #define VERBOSE(arg) trace_fmt arg | #ifndef VERBOSE |
| #define VERBOSE(arg) if (trace_flag) trace_fmt arg | |
| #endif | |
| #endif /* !TRACE */ | |
| #ifdef __cplusplus | #ifdef __cplusplus |
| }; | }; |
| #endif | #endif |
| #endif | #endif /* NP2_X11_TRACE_H__ */ |