diff options
Diffstat (limited to 'lib/zassert.h')
-rw-r--r-- | lib/zassert.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/zassert.h b/lib/zassert.h index ee36a98e..af93960a 100644 --- a/lib/zassert.h +++ b/lib/zassert.h @@ -51,7 +51,7 @@ extern void _zlog_abort_err (const char *mess, int err, const char *file, #endif /* Assert iff QDEBUG */ -#define qassert(EX) zassert(qdebug && (EX)) +#define qassert(EX) zassert(!qdebug || (EX)) /* Abort with message */ #define zabort(MS) _zlog_abort_mess(MS, __FILE__, __LINE__, __ASSERT_FUNCTION) |