libUPnP 1.8.4
ixmldebug.h
Go to the documentation of this file.
1
2
3#ifndef IXMLDEBUG_H
4#define IXMLDEBUG_H
5
6
7#include "UpnpGlobal.h"
8#include "ixml.h"
9
10
22#ifdef DEBUG
23void IxmlPrintf(
25 const char *DbgFileName,
28 int DbgLineNo,
30 const char *FunctionName,
32 const char* FmtStr,
35 ...)
36#if (__GNUC__ >= 3)
37 /* This enables printf like format checking by the compiler */
38 __attribute__((format (__printf__, 4, 5)))
39#endif
40;
41#else /* DEBUG */
42static UPNP_INLINE void IxmlPrintf(
43 const char *FmtStr,
44 ...)
45{
46 FmtStr = FmtStr;
47}
48#endif /* DEBUG */
49
50
54#ifdef DEBUG
55void printNodes(
57 IXML_Node *tmpRoot,
59 int depth);
60#else
61static UPNP_INLINE void printNodes(
62 IXML_Node *tmpRoot,
63 int depth)
64{
65 tmpRoot = tmpRoot;
66 depth = depth;
67}
68#endif
69
70
71#endif /* IXMLDEBUG_H */
72
Defines constants that for some reason are not defined on some systems.
#define UPNP_INLINE
Declares an inline function.
Definition: UpnpGlobal.h:99
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:19
void printNodes(IXML_Node *tmpRoot, int depth)
Print the node names and values of a XML tree.
Definition: ixmldebug.c:42
Data structure common to all types of nodes.
Definition: ixml.h:173