libUPnP
1.6.17
|
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 /* This enables printf like format checking by the compiler */ 00038 __attribute__((format (__printf__, 4, 5))) 00039 #endif 00040 ; 00041 #else /* DEBUG */ 00042 static UPNP_INLINE void IxmlPrintf( 00043 const char *FmtStr, 00044 ...) 00045 { 00046 FmtStr = FmtStr; 00047 } 00048 #endif /* DEBUG */ 00049 00050 00054 #ifdef DEBUG 00055 void printNodes( 00057 IXML_Node *tmpRoot, 00059 int depth); 00060 #else 00061 static UPNP_INLINE void printNodes( 00062 IXML_Node *tmpRoot, 00063 int depth) 00064 { 00065 tmpRoot = tmpRoot; 00066 depth = depth; 00067 } 00068 #endif 00069 00070 00071 #endif /* IXMLDEBUG_H */ 00072