Wednesday, June 12, 2019

Disable qDebug in a single source

You can disable all qDebug() calls in a single source file by using this little macro:
#undef qDebug
#define qDebug QNoDebug

No comments:

Post a Comment