libUPnP  1.6.17
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  FmtStr = 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  tmpRoot = tmpRoot;
66  depth = depth;
67 }
68 #endif
69 
70 
71 #endif /* IXMLDEBUG_H */
72