version 1.37, 2008/05/27 17:35:41
|
version 1.38, 2008/08/28 17:24:36
|
|
|
| |
# define PEG_METHOD_ENTER(comp,meth) | # define PEG_METHOD_ENTER(comp,meth) |
# define PEG_METHOD_EXIT() | # define PEG_METHOD_EXIT() |
# define PEG_TRACE_STRING(comp,level,string) |
|
# define PEG_TRACE(VAR_ARGS) | # define PEG_TRACE(VAR_ARGS) |
# define PEG_TRACE_CSTRING(comp,level,chars) | # define PEG_TRACE_CSTRING(comp,level,chars) |
| |
|
|
while (0) | while (0) |
# endif | # endif |
| |
// Macro for Trace String. the do construct allows this to appear |
|
// as a single statement. |
|
# define PEG_TRACE_STRING(comp, level, string) \ |
|
do \ |
|
{ \ |
|
if (Tracer::isTraceOn()) \ |
|
{ \ |
|
if (Tracer::isTraceEnabled(comp, level)) \ |
|
{ \ |
|
Tracer::traceCString(PEGASUS_FILE_LINE_COMMA \ |
|
comp, \ |
|
(const char*) (string).getCString()); \ |
|
} \ |
|
} \ |
|
} \ |
|
while (0) |
|
|
|
// Macro to trace character lists. the do construct allows this to appear | // Macro to trace character lists. the do construct allows this to appear |
// as a single statement. | // as a single statement. |
# define PEG_TRACE_CSTRING(comp, level, chars) \ | # define PEG_TRACE_CSTRING(comp, level, chars) \ |