[Bf-blender-cvs] [022cd568b2a] cycles_oneapi: GHOST: only use GHOST_PRINT when WITH_GHOST_DEBUG is enabled
Campbell Barton
noreply at git.blender.org
Wed Jun 29 10:38:38 CEST 2022
Commit: 022cd568b2a7628378c1379570a8b064bff81061
Author: Campbell Barton
Date: Tue Jun 28 10:16:28 2022 +1000
Branches: cycles_oneapi
https://developer.blender.org/rB022cd568b2a7628378c1379570a8b064bff81061
GHOST: only use GHOST_PRINT when WITH_GHOST_DEBUG is enabled
Revert part of [0] so only assert behavior is changed.
[0]: 9b5dda3b07496bda28970dfd23e4951a76d0f8ed
===================================================================
M intern/ghost/intern/GHOST_Debug.h
===================================================================
diff --git a/intern/ghost/intern/GHOST_Debug.h b/intern/ghost/intern/GHOST_Debug.h
index 6b1bd3785ae..ec1a0b34be6 100644
--- a/intern/ghost/intern/GHOST_Debug.h
+++ b/intern/ghost/intern/GHOST_Debug.h
@@ -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()
More information about the Bf-blender-cvs
mailing list