GHOST: only use GHOST_PRINT when WITH_GHOST_DEBUG is enabled

Revert part of [0] so only assert behavior is changed.

[0]: 9b5dda3b07
This commit is contained in:
Campbell Barton
2022-06-28 10:16:28 +10:00
parent 65f4f50640
commit 381fe684e2

View File

@@ -20,7 +20,7 @@
# include <stdio.h> //for printf()
#endif // WITH_GHOST_DEBUG
#if defined(WITH_GHOST_DEBUG) || (!defined(NDEBUG))
#if defined(WITH_GHOST_DEBUG)
# define GHOST_PRINT(x) \
{ \
std::cout << x; \
@@ -34,7 +34,7 @@
#else
# define GHOST_PRINT(x)
# define GHOST_PRINTF(x, ...)
#endif /* `defined(WITH_GHOST_DEBUG) || (!defined(NDEBUG))` */
#endif /* `!defined(WITH_GHOST_DEBUG)` */
#ifdef WITH_ASSERT_ABORT
# include <stdio.h> //for fprintf()