KDE/kdevplatform/language/duchain

Esben Mose Hansen kde at mosehansen.dk
Thu Dec 18 15:34:51 UTC 2008


On Thursday 18 December 2008 14:21:35 Andreas Pakulat wrote:
> Why? assert() has the same semantics as Q_ASSERT, namely generating _no
> code_ if NDEBUG is defined (i.e. in release mode).
>
> Especially see the BUGS section in man assert, it explicitly warns against
> using code with assert() that has side-effects.

I think a "not" got lost in communication somewhere. I would be surprised if 
anything in Q_ASSERT() got executed in release model. Like you say :)

-- 
kind regards, Esben





More information about the KDevelop-devel mailing list