[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SV: ppAssert () evaluation
>According to my man page of assert (3) its argument is *not* evaluated if
>NDEBUG is defined (K&R 2nd Ed is not clear about this).
>IMHO it would be good to make ppAssert () behave like this (right now its
>argument is always evaluated). What do you think?
I'm most comfortable with it not being evaluated in release builds. This is
also the way every assert macro I've ever encountered (limited number)