Go to the documentation of this file.00001 #ifndef _XRDODC_TRACE_H
00002 #define _XRDODC_TRACE_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #include "XrdOuc/XrdOucTrace.hh"
00016
00017
00018
00019 #define TRACE_ALL 0xffff
00020 #define TRACE_Debug 0x8000
00021 #define TRACE_Redirect 0x0001
00022 #define TRACE_Forward 0x0002
00023
00024 #ifndef NODEBUG
00025
00026 #include "XrdSys/XrdSysHeaders.hh"
00027 #include "XrdOuc/XrdOucTrace.hh"
00028
00029 #define QTRACE(act) OdcTrace.What & TRACE_ ## act
00030
00031 #define TRACE(act, x) \
00032 if (QTRACE(act)) \
00033 {OdcTrace.Beg(epname); cerr <<x; OdcTrace.End();}
00034
00035 #define DEBUG(y) if (QTRACE(Debug)) \
00036 {OdcTrace.Beg(epname); cerr <<y; OdcTrace.End();}
00037
00038 #define EPNAME(x) const char *epname = x;
00039
00040 #else
00041
00042 #define QTRACE(x) 0
00043 #define DEBUG(x)
00044 #define TRACE(x, y)
00045 #define EPNAME(x)
00046
00047 #endif
00048 #endif