|
|
| version 1.4, 2004/03/02 16:33:27 | version 1.7, 2011/01/15 19:16:58 |
|---|---|
| Line 1 | Line 1 |
| #ifndef NP2_X11_TRACE_H__ | #ifndef NP2_X11_TRACE_H__ |
| #define NP2_X11_TRACE_H__ | #define NP2_X11_TRACE_H__ |
| #ifdef __cplusplus | G_BEGIN_DECLS |
| extern "C" { | |
| #endif | |
| extern int trace_flag; | 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 | #ifndef TRACE |
| #define TRACEINIT() | #define TRACEINIT() |
| Line 18 extern int trace_flag; | Line 20 extern int trace_flag; |
| #else /* TRACE */ | #else /* TRACE */ |
| void trace_init(void); | |
| void trace_term(void); | |
| void trace_fmt(const char *str, ...); | |
| #define TRACEINIT() trace_init() | #define TRACEINIT() trace_init() |
| #define TRACETERM() trace_term() | #define TRACETERM() trace_term() |
| #define TRACEOUT(arg) trace_fmt arg | #define TRACEOUT(arg) trace_fmt arg |
| Line 31 void trace_fmt(const char *str, ...); | Line 29 void trace_fmt(const char *str, ...); |
| #endif /* !TRACE */ | #endif /* !TRACE */ |
| #ifdef __cplusplus | G_END_DECLS |
| }; | |
| #endif | |
| #endif /* NP2_X11_TRACE_H__ */ | #endif /* NP2_X11_TRACE_H__ */ |