kdebug vs. non-debug builds

Oswald Buddenhagen ossi at kde.org
Sat Dec 22 00:12:05 GMT 2007


On Fri, Dec 21, 2007 at 11:03:12PM +0100, Oswald Buddenhagen wrote:
> #if !defined(KDE_NO_DEBUG_OUTPUT)
> # define kDebug        KDebug(QtDebugMsg, __FILE__, __LINE__, # Q_FUNC_INFO)
> #else
> # define kDebug        if (1); else kDebug
> #endif
> 
> this can be properly solved by inlining kDebugDevNull() to return a
> fully inline KNoDebugStream like it was in kde3 and how QDebug does.
> 
uhm, actually, this won't help, as the return value cannot be assigned
to QDebug then; QDebug itself has the same problem. so unless somebody
has a brilliant idea ...

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Confusion, chaos, panic - my work here is done.




More information about the kde-core-devel mailing list