From kde-core-devel Sat Dec 22 00:12:05 2007 From: Oswald Buddenhagen Date: Sat, 22 Dec 2007 00:12:05 +0000 To: kde-core-devel Subject: Re: kdebug vs. non-debug builds Message-Id: <20071222001205.GA20536 () ugly ! local> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=119828234514459 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.