Tweaks to nhassert implementation. Change to warnings on MSC build.

This commit is contained in:
Bart House
2019-07-12 18:40:34 -07:00
parent 3842da9dbd
commit 93ce6857d3
5 changed files with 42 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(#expression, __FILE__, __LINE__), 0))
(nhassert_failed(__FILE__, __LINE__), 0))
#endif
#endif /* GLOBAL_H */