[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: kdebug vs. non-debug builds
From:       Oswald Buddenhagen <ossi () kde ! org>
Date:       2007-12-22 0:12:05
Message-ID: 20071222001205.GA20536 () ugly ! local
[Download RAW message or body]

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.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic