Go to the documentation of this file. 1 #ifndef ___BWM_TRACE_H___
2 #define ___BWM_TRACE_H___
22 #define GTRACE(act) BwmTrace.What & TRACE_ ## act
25 {BwmTrace.Beg(epname,tident); cerr <<x; BwmTrace.End();}
27 #define FTRACE(act, x) \
29 TRACES(x <<" fn=" << (oh->Name()))
31 #define XTRACE(act, target, x) \
32 if (GTRACE(act)) TRACES(x <<" fn=" <<target)
34 #define ZTRACE(act, x) if (GTRACE(act)) TRACES(x)
36 #define DEBUG(x) if (GTRACE(debug)) TRACES(x)
38 #define EPNAME(x) static const char *epname = x;
45 #define XTRACE(x, y, a1)
46 #define YTRACE(x, y, a1, a2, a3, a4, a5)
55 #define TRACE_ALL 0xffff
56 #define TRACE_calls 0x0001
57 #define TRACE_delay 0x0002
58 #define TRACE_sched 0x0004
59 #define TRACE_tokens 0x0008
60 #define TRACE_debug 0x8000