libUPnP 1.14.19
ixmldebug.h
Go to the documentation of this file.
1
2
3#ifndef IXMLDEBUG_H
4#define IXMLDEBUG_H
5
6#include "UpnpGlobal.h"
7#include "ixml.h"
8
19#ifdef DEBUG
20void IxmlPrintf(
22 const char *DbgFileName,
25 int DbgLineNo,
27 const char *FunctionName,
29 const char *FmtStr,
32 ...)
33 #if (__GNUC__ >= 3)
34 /* This enables printf like format checking by the compiler */
35 __attribute__((format(__printf__, 4, 5)))
36 #endif
37 ;
38#else /* DEBUG */
39static UPNP_INLINE void IxmlPrintf(const char *FmtStr, ...) { (void)FmtStr; }
40#endif /* DEBUG */
41
45#ifdef DEBUG
46void printNodes(
48 IXML_Node *tmpRoot,
50 int depth);
51#else
52static UPNP_INLINE void printNodes(IXML_Node *tmpRoot, int depth)
53{
54 (void)tmpRoot;
55 (void)depth;
56}
57#endif
58
59#endif /* IXMLDEBUG_H */
Defines constants that for some reason are not defined on some systems.
#define UPNP_INLINE
Declares an inline function.
Definition UpnpGlobal.h:112
void IxmlPrintf(const char *DbgFileName, int DbgLineNo, const char *FunctionName, const char *FmtStr,...)
Prints the debug statement either on the standard output or log file along with the information from ...
Definition ixmldebug.c:15
void printNodes(IXML_Node *tmpRoot, int depth)
Print the node names and values of a XML tree.
Definition ixmldebug.c:36
Data structure common to all types of nodes.
Definition ixml.h:136