[Bf-blender-cvs] [d711540a853] soc-2019-openxr: Cleanup: Rename XR_DEBUG_BEGIN -> XR_DEBUG_ONLY_BEGIN
Julian Eisel
noreply at git.blender.org
Wed Jul 10 15:21:01 CEST 2019
Commit: d711540a853a9c1c3dd97f7de9d79ad0ffb3c7db
Author: Julian Eisel
Date: Wed Jul 10 15:06:08 2019 +0200
Branches: soc-2019-openxr
https://developer.blender.org/rBd711540a853a9c1c3dd97f7de9d79ad0ffb3c7db
Cleanup: Rename XR_DEBUG_BEGIN -> XR_DEBUG_ONLY_BEGIN
Of course also renames XR_DEBUG_END accordingly.
===================================================================
M intern/ghost/intern/GHOST_Xr.cpp
M intern/ghost/intern/GHOST_Xr_intern.h
===================================================================
diff --git a/intern/ghost/intern/GHOST_Xr.cpp b/intern/ghost/intern/GHOST_Xr.cpp
index 63d1ebd3381..5991393b464 100644
--- a/intern/ghost/intern/GHOST_Xr.cpp
+++ b/intern/ghost/intern/GHOST_Xr.cpp
@@ -62,12 +62,12 @@ static bool openxr_gather_extensions_ex(const GHOST_XrContext *xr_context,
/* Actually get the extensions. */
xrEnumerateInstanceExtensionProperties(
layer_name, extension_count, &extension_count, extensions.data());
- XR_DEBUG_BEGIN(xr_context);
+ XR_DEBUG_ONLY_BEGIN(xr_context);
for (uint32_t i = 0; i < extension_count; i++) {
XR_DEBUG_PRINTF(
xr_context, "Extension: %s\n", extensions[i + old_extension_count].extensionName);
}
- XR_DEBUG_END;
+ XR_DEBUG_ONLY_END;
return true;
}
diff --git a/intern/ghost/intern/GHOST_Xr_intern.h b/intern/ghost/intern/GHOST_Xr_intern.h
index 3d163560209..196e9dbb9ce 100644
--- a/intern/ghost/intern/GHOST_Xr_intern.h
+++ b/intern/ghost/intern/GHOST_Xr_intern.h
@@ -27,10 +27,10 @@
#include "GHOST_Xr_openxr_includes.h"
#include "GHOST_XrSession.h"
-#define XR_DEBUG_BEGIN(ctx) \
+#define XR_DEBUG_ONLY_BEGIN(ctx) \
if ((ctx)->debug) { \
(void)0
-#define XR_DEBUG_END \
+#define XR_DEBUG_ONLY_END \
} \
(void)0
More information about the Bf-blender-cvs
mailing list