Fix WITH_FULL_ASSERTS being defined when all asserts disabled

This commit is contained in:
Jonathan G Rennison
2022-11-03 18:41:04 +00:00
parent 4b08874583
commit 206a853a7f

View File

@@ -483,7 +483,7 @@ const char *assert_tile_info(uint32 tile);
# define assert_msg_tile(expression, tile, ...)
# define assert_tile(expression, tile)
#endif
#if !defined(FEWER_ASSERTS)
#if (!defined(NDEBUG) || defined(WITH_ASSERT)) && !defined(FEWER_ASSERTS)
# define WITH_FULL_ASSERTS
# define dbg_assert(expression) assert(expression)
# define dbg_assert_msg(expression, ...) assert_msg(expression, __VA_ARGS__)