equal
deleted
inserted
replaced
|
1 |
|
2 #ifndef _XMLDITATRACE_H |
|
3 #define _XMLDITATRACE_H |
|
4 |
|
5 /** \file This contains trace macros for DITA XMl processing */ |
|
6 |
|
7 // TODO DITA_DOC_VISITOR_TRACE won't work on all DocNode objects, probably most have: |
|
8 // op->type() and op->test().data() though. |
|
9 #ifdef DITA_TRACE |
|
10 #define DITA_DOC_VISITOR_TRACE(fn,op) printf("DITA_DOC_VISITOR: %s(): type=%d first=%d, last=%d text=`%s'\n", \ |
|
11 fn,op->type(),op->isFirst(),op->isLast(),op->text().data()); |
|
12 #else |
|
13 #define DITA_DOC_VISITOR_TRACE(fn,op) |
|
14 #endif |
|
15 |
|
16 |
|
17 #endif //_XMLDITATRACE_H |