Remove __STRING() usage. It's nonstandard, while #expr works everywhere nowadays.

Signed-off-by: Timo Sirainen <tss@iki.fi>
This commit is contained in:
Timo Sirainen
2012-08-11 23:13:10 +03:00
committed by Keith Winstein
parent 7117b61bf4
commit 4f66e9a2e0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -49,6 +49,6 @@ static void dos_detected( const char *expression, const char *file, int line, co
#define dos_assert(expr) \ #define dos_assert(expr) \
((expr) \ ((expr) \
? (void)0 \ ? (void)0 \
: dos_detected (__STRING(expr), __FILE__, __LINE__, __PRETTY_FUNCTION__ )) : dos_detected (#expr, __FILE__, __LINE__, __PRETTY_FUNCTION__ ))
#endif #endif
+1 -1
View File
@@ -46,6 +46,6 @@ static void fatal_error( const char *expression, const char *file, int line, con
#define fatal_assert(expr) \ #define fatal_assert(expr) \
((expr) \ ((expr) \
? (void)0 \ ? (void)0 \
: fatal_error (__STRING(expr), __FILE__, __LINE__, __PRETTY_FUNCTION__ )) : fatal_error (#expr, __FILE__, __LINE__, __PRETTY_FUNCTION__ ))
#endif #endif