the_bis
14th November 2006, 14:18
I want to create a macro that expands to qDebug, so I suppress the qDebug output in release build.
How can I do it correctly?
I tried with:
#ifdef MY_DEBUG
#define QDEBUG(x) qDebug(x)
#else
#define QDEBUG(x)
#endif
but I have a problem with multiple qDebug parameters like:
qDebug ( "ENTER in DeviceConfiguration = %s\n", moduleName.ascii() );
Any help?
Thanks,
the_bis
How can I do it correctly?
I tried with:
#ifdef MY_DEBUG
#define QDEBUG(x) qDebug(x)
#else
#define QDEBUG(x)
#endif
but I have a problem with multiple qDebug parameters like:
qDebug ( "ENTER in DeviceConfiguration = %s\n", moduleName.ascii() );
Any help?
Thanks,
the_bis