On quinta-feira, 9 de janeiro de 2014 16:29:10, Koehne Kai wrote: > > -----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";
if (!myCategory().isEnabled() {} else QMessageLogger(__FILE__, __LINE__,
__FUNCTION__).debug()
<< "Hello World";
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
