summaryrefslogtreecommitdiffstats
path: root/client-lib
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-13 15:56:14 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-14 14:04:51 +0200
commit8ec32940e425c028d7669b1dc9a81d8d72859e71 (patch)
tree4429d00b458d43258ff2f5afaa85bd8124109203 /client-lib
parente30fe48e4c13ed57be74eaa65749e180d03c2e0c (diff)
AFBClient: honor the SCOPE_TRACING option from cmake
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'client-lib')
-rw-r--r--client-lib/AFBClient.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/client-lib/AFBClient.cpp b/client-lib/AFBClient.cpp
index e0c4efa..60743d9 100644
--- a/client-lib/AFBClient.cpp
+++ b/client-lib/AFBClient.cpp
@@ -84,13 +84,13 @@ namespace {
constexpr const int token_maxlen = 20;
constexpr const char *const wmAPI = "winman";
-#ifdef NDEBUG
-#define TRACE()
-#define TRACEN(N)
-#else
#define CONCAT_(X, Y) X##Y
#define CONCAT(X, Y) CONCAT_(X, Y)
+#ifndef SCOPE_TRACING
+#define TRACE()
+#define TRACEN(N)
+#else
#define TRACE() \
ScopeTrace __attribute__((unused)) CONCAT(trace_scope_, __LINE__)(__func__)
#define TRACEN(N) \