mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
Don't macro-expand failed assertion expression [BZ #18604]
[BZ #18604] * assert/assert.h (assert): Don't macro-expand failed assertion expression in error message. * malloc/malloc.c (assert): Likewise.
This commit is contained in:
committed by
Florian Weimer
parent
cf09d0b052
commit
8ba14398e6
@@ -85,7 +85,7 @@ __END_DECLS
|
||||
# define assert(expr) \
|
||||
((expr) \
|
||||
? __ASSERT_VOID_CAST (0) \
|
||||
: __assert_fail (__STRING(expr), __FILE__, __LINE__, __ASSERT_FUNCTION))
|
||||
: __assert_fail (#expr, __FILE__, __LINE__, __ASSERT_FUNCTION))
|
||||
|
||||
# ifdef __USE_GNU
|
||||
# define assert_perror(errnum) \
|
||||
|
||||
Reference in New Issue
Block a user