> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On
> Behalf Of Thiago Macieira
> Sent: Thursday, January 09, 2014 5:05 PM
> To: [email protected]
> 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
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development