From 4d227dd5931043a17fe28567a67eac4b8bac8e68 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 17 Jul 2025 11:42:15 +1000 Subject: [PATCH] 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. --- intern/ghost/intern/GHOST_Debug.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/intern/ghost/intern/GHOST_Debug.hh b/intern/ghost/intern/GHOST_Debug.hh index 544e271e6ef..58af6fcdf53 100644 --- a/intern/ghost/intern/GHOST_Debug.hh +++ b/intern/ghost/intern/GHOST_Debug.hh @@ -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)) { \