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:
parent
4a16cf71f9
commit
0dd844d89b
|
@ -57,7 +57,7 @@
|
|||
# define DEBUGVERIFY(f) VERIFY(f)
|
||||
#else
|
||||
# define DEBUGPANIC()
|
||||
# define DEBUGASSERT(f) UNUSED(f)
|
||||
# define DEBUGASSERT(f) ((void)(1 || (f)))
|
||||
# define DEBUGVERIFY(f) ((void)(f))
|
||||
#endif
|
||||
|
||||
|
@ -67,7 +67,7 @@
|
|||
*/
|
||||
|
||||
#ifdef NDEBUG
|
||||
# define assert(f) UNUSED(f)
|
||||
# define assert(f) ((void)(1 || (f)))
|
||||
#else
|
||||
# define assert(f) ASSERT(f)
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue