On 31 July 2015 at 10:26, Smith Martin <[email protected]> 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.
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development