Something like this might be even easier:
#ifdef __DEBUG__
#define IFDEBUG(x) {x;}
#else
#define IFDEBUG(x)
#endif
which allows to use:
IFDEBUG( qDebug() << "This is some debugging info." );
Saves a bit of typing.
Also note that QT debugging is controlled by QT_NO_DEBUG.
Regards,
Pieter
Sean M. Pappalardo wrote:
> Hello everyone.
>
> I finally added a debug flag to the scons options so we don't have to
> worry about removing useful qDebugs anymore.
>
> Compile with scons debug=1 to turn it on.
>
> In your code, use this to surround debugging statements:
>
> #ifdef __DEBUG__
> qDebug() << "This is some debugging info.";
> #endif
>
>
> Enjoy!
>
> Sean
>
> <<--------------------------------------------------------------------------------->>
> This E-Mail message has been scanned for viruses
> and cleared by >>SmartMail<< from Smarter Technology, Inc.
> <<--------------------------------------------------------------------------------->>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Mixxx-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mixxx-devel
>
------------------------------------------------------------------------------
_______________________________________________
Mixxx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mixxx-devel