[Development] QNoDebug - available but undocumented
Tomasz Siekierda
sierdzio at gmail.com
Fri Jul 31 10:43:14 CEST 2015
On 31 July 2015 at 10:26, Smith Martin <Martin.Smith at theqtcompany.com> wrote:
> qdebug.cpp should contain a comment like this:
>
> /*!
> \class QNoDebug
> \internal
> */
Well, it does not contain this comment.
Olivier Goffart:
> It's a fake class that replaces QDebug when QT_NO_DEBUG_OUTPUT is defined.
> That way the code compiles but is optimized away.
Thanks for the explanation. I've asked because I've been surprised to
see it being used in some project like this:
#ifdef DEBUG_FETCHER
#define fetcherDebug qDebug()
#else
#define fetcherDebug NoDebug()
#endif
as a temporary solution to enable debug output of a new feature.
More information about the Development
mailing list