libUPnP  1.14.5
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
23 void 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 */
42 static UPNP_INLINE void IxmlPrintf(
43  const char *FmtStr,
44  ...)
45 {
46  (void)FmtStr;
47 }
48 #endif /* DEBUG */
49 
50 
54 #ifdef DEBUG
55 void printNodes(
57  IXML_Node *tmpRoot,
59  int depth);
60 #else
61 static UPNP_INLINE void printNodes(
62  IXML_Node *tmpRoot,
63  int depth)
64 {
65  (void)tmpRoot;
66  (void)depth;
67 }
68 #endif
69 
70 
71 #endif /* IXMLDEBUG_H */
72 
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:135
#define UPNP_INLINE
Declares an inline function.
Definition: UpnpGlobal.h:103
Defines constants that for some reason are not defined on some systems.