Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Rishel <rishel.nick@gmail.com>2020-06-10 04:12:54 +0300
committerNicholas Rishel <rishel.nick@gmail.com>2020-10-31 02:29:04 +0300
commita9d6eb8f0b6c85878f02c057dc8ac48819f912df (patch)
treed5e6dd2fa69cd9a787257aa06964ae7bf0599fc7 /intern/ghost/intern/GHOST_Debug.h
parentd9b0ef2de43f70979ffcf370ca371cac897adf7b (diff)
Add Wintab debug logging as a CMake option WITH_WINTAB_DEBUG.
Signed-off-by: Nicholas Rishel <rishel.nick@gmail.com>
Diffstat (limited to 'intern/ghost/intern/GHOST_Debug.h')
-rw-r--r--intern/ghost/intern/GHOST_Debug.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/intern/ghost/intern/GHOST_Debug.h b/intern/ghost/intern/GHOST_Debug.h
index 424f95aa573..49b88bdc815 100644
--- a/intern/ghost/intern/GHOST_Debug.h
+++ b/intern/ghost/intern/GHOST_Debug.h
@@ -34,9 +34,6 @@
#ifdef WITH_GHOST_DEBUG
# include <iostream>
# include <stdio.h> //for printf()
-#endif // WITH_GHOST_DEBUG
-
-#ifdef WITH_GHOST_DEBUG
# define GHOST_PRINT(x) \
{ \
std::cout << x; \
@@ -52,6 +49,17 @@
# define GHOST_PRINTF(x, ...)
#endif // WITH_GHOST_DEBUG
+#ifdef WITH_WINTAB_DEBUG
+# include <stdio.h> //for printf()
+# define WINTAB_PRINTF(x, ...) \
+ { \
+ printf(x, __VA_ARGS__); \
+ } \
+ (void)0
+#else // WITH_WINTAB_DEBUG
+# define WINTAB_PRINTF(x, ...)
+#endif // WITH_WINTAB_DEBUG
+
#ifdef WITH_ASSERT_ABORT
# include <stdio.h> //for fprintf()
# include <stdlib.h> //for abort()