Revert "assert: When defining NDEBUG, do not use macro parameters"
This reverts commit 3b6e7c1927
.
This commit is contained in:
parent
e67d32a5ba
commit
e6ca27ac2f
@ -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__)
|
||||
|
Loading…
Reference in New Issue
Block a user