Orb/Doxygen/src/xmlditatrace.h
author szarinda <>
Thu, 21 Jan 2010 17:29:01 +0000
changeset 0 42188c7ea2d9
child 1 82f11024044a
permissions -rw-r--r--
Initial contribution of ORB delivering Feature bug 1460


#ifndef _XMLDITATRACE_H
#define _XMLDITATRACE_H

/** \file This contains trace macros for DITA XMl processing */

// TODO DITA_DOC_VISITOR_TRACE won't work on all DocNode objects, probably most have:
// op->type() and op->test().data() though.
#ifdef DITA_TRACE
#define DITA_DOC_VISITOR_TRACE(fn,op) printf("DITA_DOC_VISITOR: %s(): type=%d first=%d, last=%d text=`%s'\n", \
fn,op->type(),op->isFirst(),op->isLast(),op->text().data());
#else
#define DITA_DOC_VISITOR_TRACE(fn,op)
#endif


#endif //_XMLDITATRACE_H