summaryrefslogtreecommitdiff
path: root/src/libinput-util.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2015-06-29 13:56:05 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2015-06-29 13:56:05 +1000
commit9610ff849e6a3fbd95a52f7c6c045901046a1f60 (patch)
tree741f9e3bcf8f398801b2eacc6be3c969d7764012 /src/libinput-util.h
parent0d322c69d0df0b262dbd3a6a0427bde0a596dfb2 (diff)
parentb344e3e56646ecea29f3930d88b57babea358db2 (diff)
Merge branch 'master' into tablet-support
Diffstat (limited to 'src/libinput-util.h')
-rw-r--r--src/libinput-util.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libinput-util.h b/src/libinput-util.h
index f17842e9..50edb492 100644
--- a/src/libinput-util.h
+++ b/src/libinput-util.h
@@ -95,6 +95,16 @@ int list_empty(const struct list *list);
#define NCHARS(x) ((size_t)(((x) + 7) / 8))
+#ifdef DEBUG_TRACE
+#define debug_trace(...) \
+ do { \
+ printf("%s:%d %s() - ", __FILE__, __LINE__, __func__); \
+ printf(__VA_ARGS__); \
+ } while (0)
+#else
+#define debug_trace(...) { }
+#endif
+
#define LIBINPUT_EXPORT __attribute__ ((visibility("default")))
static inline void *