Add stringization of nhassert expression.

This commit is contained in:
Bart House
2020-10-20 20:14:27 -07:00
parent d1c7f26d4b
commit 7e3a739ef9
3 changed files with 5 additions and 4 deletions

View File

@@ -428,7 +428,7 @@ struct savefile_info {
/* Supply nhassert macro if not supplied by port */
#ifndef nhassert
#define nhassert(expression) (void)((!!(expression)) || \
(nhassert_failed(__FILE__, __LINE__), 0))
(nhassert_failed(#expression, __FILE__, __LINE__), 0))
#endif
#endif /* GLOBAL_H */