2013-11-16 18:34:09 +00:00
|
|
|
#ifndef __GDDEBUG_HH_INCLUDED__
|
|
|
|
#define __GDDEBUG_HH_INCLUDED__
|
|
|
|
|
|
|
|
#include <QFile>
|
|
|
|
|
|
|
|
#ifdef NO_CONSOLE
|
2018-05-22 14:48:14 +00:00
|
|
|
#define GD_DPRINTF(...) do {} while( 0 )
|
|
|
|
#define GD_FDPRINTF(...) do {} while( 0 )
|
2013-11-16 18:34:09 +00:00
|
|
|
#else
|
2014-05-10 21:02:31 +00:00
|
|
|
#define GD_DPRINTF(...) printf(__VA_ARGS__)
|
|
|
|
#define GD_FDPRINTF(...) fprintf(__VA_ARGS__)
|
2013-11-16 18:34:09 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
void gdWarning(const char *, ...) /* print warning message */
|
|
|
|
#if defined(Q_CC_GNU) && !defined(__INSURE__)
|
|
|
|
__attribute__ ((format (printf, 1, 2)))
|
|
|
|
#endif
|
|
|
|
;
|
|
|
|
|
|
|
|
void gdDebug(const char *, ...)
|
|
|
|
#if defined(Q_CC_GNU) && !defined(__INSURE__)
|
|
|
|
__attribute__ ((format (printf, 1, 2)))
|
|
|
|
#endif
|
|
|
|
;
|
|
|
|
|
2018-05-22 14:37:21 +00:00
|
|
|
extern QFile * logFilePtr;
|
2013-11-16 18:34:09 +00:00
|
|
|
|
|
|
|
#endif // __GDDEBUG_HH_INCLUDED__
|