On Wed, Sep 21, 2011 at 11:43 PM, Thiago Macieira <thi...@kde.org> wrote:
> Also a VERY BAD idea. Q_ASSERT expands to empty in release builds.

Why isn't there any variant of Q_ASSERT that expands like

#define Q_ASSERT_ALT(x) x;

in release builds? If it's a simple value check like Q_ASSERT_ALT(x >
0), the compiler will optimize the effect-less statement away.

Greetings
Stefan
_______________________________________________
Qt5-feedback mailing list
Qt5-feedback@qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback

Reply via email to