Code Review
/
staging
/
windowmanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
e30fe48
)
AFBClient: honor the SCOPE_TRACING option from cmake
author
Marcus Fritzsch
<marcus_fritzsch@mentor.com>
Wed, 13 Sep 2017 13:56:14 +0000
(15:56 +0200)
committer
Marcus Fritzsch
<marcus_fritzsch@mentor.com>
Thu, 14 Sep 2017 12:04:51 +0000
(14:04 +0200)
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
client-lib/AFBClient.cpp
patch
|
blob
|
history
diff --git
a/client-lib/AFBClient.cpp
b/client-lib/AFBClient.cpp
index
e0c4efa
..
60743d9
100644
(file)
--- 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) \