Go to the documentation of this file. 1 #ifndef _XRDOSS_TRACE_H 2 #define _XRDOSS_TRACE_H 37 #define TRACE_ALL 0x0fff 38 #define TRACE_Opendir 0x0001 39 #define TRACE_Open 0x0002 40 #define TRACE_AIO 0x0004 41 #define TRACE_Debug 0x0800 47 #define QTRACE(act) OssTrace.What & TRACE_ ## act 49 #define TRACE(act, x) \ 51 {OssTrace.Beg(epname,tident); cerr <<x; OssTrace.End();} 53 #define TRACEReturn(type, ecode, msg) \ 54 {TRACE(type, "err " <<ecode <<msg); return ecode;} 56 #define DEBUG(y) if (QTRACE(Debug)) \ 57 {OssTrace.Beg(epname); cerr <<y; OssTrace.End();} 59 #define EPNAME(x) static const char *epname = x; 66 #define TRACEReturn(type, ecode, msg) return ecode