mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Update.
* assert/assert.h (assert): Use !! in front of expression to allow use of pointers.
This commit is contained in:
@ -89,7 +89,7 @@ __END_DECLS
|
||||
enough estimate for when the feature became available. */
|
||||
# if __GNUC_PREREQ (3, 0)
|
||||
# define assert(expr) \
|
||||
(__ASSERT_VOID_CAST (__builtin_expect (expr, 1) ? 0 : \
|
||||
(__ASSERT_VOID_CAST (__builtin_expect (!!(expr), 1) ? 0 : \
|
||||
(__assert_fail (__STRING(expr), __FILE__, __LINE__, \
|
||||
__ASSERT_FUNCTION), 0)))
|
||||
# else
|
||||
|
Reference in New Issue
Block a user