9a98f25b95
git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@378 119443c7-1b9e-41f8-b6fc-b9c35fce742c
35 lines
693 B
C
35 lines
693 B
C
|
|
|
|
#ifndef IXMLDEBUG_H
|
|
#define IXMLDEBUG_H
|
|
|
|
|
|
#include "ixml.h"
|
|
|
|
|
|
/*!
|
|
* \brief Prints the debug statement either on the standard output or log file
|
|
* along with the information from where this debug statement is coming.
|
|
**/
|
|
#ifdef DEBUG
|
|
void IxmlPrintf(
|
|
/*! [in] Printf like format specification. */
|
|
const char* FmtStr,
|
|
/*! [in] Printf like Variable number of arguments that will go in the debug
|
|
* statement. */
|
|
...)
|
|
#if (__GNUC__ >= 3)
|
|
/* This enables printf like format checking by the compiler */
|
|
__attribute__((format (__printf__, 1, 2)))
|
|
#endif
|
|
;
|
|
#else /* DEBUG */
|
|
static IXML_INLINE void IxmlPrintf(
|
|
const char* FmtStr,
|
|
...) {}
|
|
#endif /* DEBUG */
|
|
|
|
|
|
#endif /* IXMLDEBUG_H */
|
|
|