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)
|
# 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
|
||||||
|
|
Loading…
Reference in New Issue