Revert "assert: When defining NDEBUG, do not use macro parameters"

This reverts commit 3b6e7c1927.
This commit is contained in:
Masayuki Ishikawa 2024-02-22 10:32:37 +09:00 committed by Xiang Xiao
parent e67d32a5ba
commit e6ca27ac2f

View File

@ -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__)