From 8ba14398e629c1f63b9c91a59a47a713b3cce8bc Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Tue, 3 Nov 2015 23:08:54 +0100 Subject: 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. --- assert/assert.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'assert') diff --git a/assert/assert.h b/assert/assert.h index d04c58cc8a..40b9848c15 100644 --- a/assert/assert.h +++ b/assert/assert.h @@ -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) \ -- cgit v1.2.3