Remove __STRING() usage. It's nonstandard, while #expr works everywhere nowadays.
Signed-off-by: Timo Sirainen <tss@iki.fi>
This commit is contained in:
committed by
Keith Winstein
parent
7117b61bf4
commit
4f66e9a2e0
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user