ixmldebug.h
Go to the documentation of this file.00001
00002
00003 #ifndef IXMLDEBUG_H
00004 #define IXMLDEBUG_H
00005
00006
00007 #include "UpnpGlobal.h"
00008 #include "ixml.h"
00009
00010
00022 #ifdef DEBUG
00023 void IxmlPrintf(
00025 const char *DbgFileName,
00028 int DbgLineNo,
00030 const char *FunctionName,
00032 const char* FmtStr,
00035 ...)
00036 #if (__GNUC__ >= 3)
00037
00038 __attribute__((format (__printf__, 4, 5)))
00039 #endif
00040 ;
00041 #else
00042 static UPNP_INLINE void IxmlPrintf(
00043 const char* FmtStr,
00044 ...) {}
00045 #endif
00046
00047
00051 #ifdef DEBUG
00052 void printNodes(
00054 IXML_Node *tmpRoot,
00056 int depth);
00057 #else
00058 static UPNP_INLINE void printNodes(
00059 IXML_Node *tmpRoot,
00060 int depth)
00061 {
00062 }
00063 #endif
00064
00065
00066 #endif
00067