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 #include "xmldita.h" |
|
8 |
|
9 // DITA_DOC_VISITOR_TRACE will work on all DocNode objects. |
|
10 #ifdef DITA_TRACE |
|
11 //#define DITA_DOC_VISITOR_TRACE(fn,op) printf("DITA_DOC_VISITOR: %s(): type=%d first=%d, last=%d text=`%s'\n", \ |
|
12 //fn,op->type(),op->isFirst(),op->isLast(),op->text().data()); |
|
13 #ifdef DITA_TRACE_TO_XML |
|
14 #define DITA_DOC_VISITOR_TRACE(fn,pNode) xmlStream.comment(QString(fn)); |
|
15 #define DITA_DOC_VISITOR_TRACE_NOARG(fn) xmlStream.comment(QString(fn)); |
|
16 #else |
|
17 #define DITA_DOC_VISITOR_TRACE(fn,pNode) printf("DITA_DOC_VISITOR: `%s': kind=%d node=0x%X, parent=0x%X\n", \ |
|
18 fn, pNode->kind(), pNode,pNode->parent()); |
|
19 #define DITA_DOC_VISITOR_TRACE_NOARG(fn) printf("DITA_DOC_VISITOR: `%s'\n", fn); |
|
20 #endif |
|
21 #else |
|
22 #define DITA_DOC_VISITOR_TRACE(fn,op) |
|
23 #define DITA_DOC_VISITOR_TRACE_NOARG(fn) |
|
24 #endif |
|
25 |
|
26 |
|
27 #endif //_XMLDITATRACE_H |