diff --git a/include/assert.h b/include/assert.h index be3ec5c588..89d550a600 100644 --- a/include/assert.h +++ b/include/assert.h @@ -96,7 +96,7 @@ # define DEBUGVERIFY(f) _VERIFY(f, __DEBUG_ASSERT_FILE__, __DEBUG_ASSERT_LINE__) #else # define DEBUGPANIC() -# define DEBUGASSERT(f) ((void)(0)) +# define DEBUGASSERT(f) ((void)(1 || (f))) # define DEBUGVERIFY(f) ((void)(f)) #endif @@ -106,7 +106,7 @@ */ #ifdef NDEBUG -# define assert(f) ((void)(0)) +# define assert(f) ((void)(1 || (f))) # define VERIFY(f) assert(f) #else # define assert(f) _ASSERT(f, __ASSERT_FILE__, __ASSERT_LINE__)