From 4f66e9a2e0b404a602806043db946596e10c95a4 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 11 Aug 2012 23:13:10 +0300 Subject: [PATCH] Remove __STRING() usage. It's nonstandard, while #expr works everywhere nowadays. Signed-off-by: Timo Sirainen --- src/util/dos_assert.h | 2 +- src/util/fatal_assert.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/dos_assert.h b/src/util/dos_assert.h index 679acf2..8b5a03d 100644 --- a/src/util/dos_assert.h +++ b/src/util/dos_assert.h @@ -49,6 +49,6 @@ static void dos_detected( const char *expression, const char *file, int line, co #define dos_assert(expr) \ ((expr) \ ? (void)0 \ - : dos_detected (__STRING(expr), __FILE__, __LINE__, __PRETTY_FUNCTION__ )) + : dos_detected (#expr, __FILE__, __LINE__, __PRETTY_FUNCTION__ )) #endif diff --git a/src/util/fatal_assert.h b/src/util/fatal_assert.h index 4f993ac..99517f6 100644 --- a/src/util/fatal_assert.h +++ b/src/util/fatal_assert.h @@ -46,6 +46,6 @@ static void fatal_error( const char *expression, const char *file, int line, con #define fatal_assert(expr) \ ((expr) \ ? (void)0 \ - : fatal_error (__STRING(expr), __FILE__, __LINE__, __PRETTY_FUNCTION__ )) + : fatal_error (#expr, __FILE__, __LINE__, __PRETTY_FUNCTION__ )) #endif