mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +08:00
assert.h: Don't use UNUSED macro since it's very easy happen conflict
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
4a16cf71f9
commit
0dd844d89b
+2
-2
@@ -57,7 +57,7 @@
|
|||||||
# define DEBUGVERIFY(f) VERIFY(f)
|
# define DEBUGVERIFY(f) VERIFY(f)
|
||||||
#else
|
#else
|
||||||
# define DEBUGPANIC()
|
# define DEBUGPANIC()
|
||||||
# define DEBUGASSERT(f) UNUSED(f)
|
# define DEBUGASSERT(f) ((void)(1 || (f)))
|
||||||
# define DEBUGVERIFY(f) ((void)(f))
|
# define DEBUGVERIFY(f) ((void)(f))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -67,7 +67,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef NDEBUG
|
#ifdef NDEBUG
|
||||||
# define assert(f) UNUSED(f)
|
# define assert(f) ((void)(1 || (f)))
|
||||||
#else
|
#else
|
||||||
# define assert(f) ASSERT(f)
|
# define assert(f) ASSERT(f)
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user