1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00
* assert/assert.h (assert): Use !! in front of expression to allow
	use of pointers.
This commit is contained in:
Ulrich Drepper
2003-08-14 21:48:29 +00:00
parent 41d70e88b1
commit 9b0a6e9600
3 changed files with 15286 additions and 1 deletions

View File

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