GHOST: show assertion failures even when WITH_ASERT_ABORT=OFF

This makes GHOST_ASSERT behave like BLI_assert, where any non release
build shows an error even when assert doesn't abort.
This commit is contained in:
Campbell Barton
2025-07-17 11:42:15 +10:00
parent 219d327b80
commit 4d227dd593

View File

@@ -62,8 +62,8 @@
} \
} \
((void)0)
/* Assert in non-release builds too. */
#elif defined(WITH_GHOST_DEBUG) || (!defined(NDEBUG))
/* Show the failure in non-release builds too. */
#elif !defined(NDEBUG)
# define GHOST_ASSERT(x, info) \
{ \
if (!(x)) { \