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