[Development] Let's get rid of qDebug/qWarning/qCritical!
Koehne Kai
Kai.Koehne at digia.com
Thu Jan 9 17:29:10 CET 2014
> -----Original Message-----
> From: development-bounces+kai.koehne=digia.com at qt-project.org
> [mailto:development-bounces+kai.koehne=digia.com at qt-project.org] On
> Behalf Of Thiago Macieira
> Sent: Thursday, January 09, 2014 5:05 PM
> To: development at qt-project.org
> Subject: Re: [Development] Let's get rid of qDebug/qWarning/qCritical!
>
> On quinta-feira, 9 de janeiro de 2014 07:28:07, Koehne Kai wrote:
> > if qCWarning() would expand to an if (myCategory().isEnabled()) ...
>
> That's why it would have to expand to if (!myCategory().isEnabled()) {} else
Well, we can't, since the << arguments are not part of the macro :) That would end up with s.th. lie
if (!myCategory().isEnabled()) { QMessageLogger(__FILE__, __LINE__, __FUNCTION__).debug() {} else {} << "Hello World";
which doesn't compile.
Regards
Kai
More information about the Development
mailing list