summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 72a9a5d..b166efe 100644
--- a/src/util.h
+++ b/src/util.h
@@ -2,6 +2,7 @@
#define _UTIL_H
#include <errno.h>
+#include <inttypes.h>
#include <stdio.h>
#include <string.h>
@@ -15,6 +16,9 @@
#define VWM_TRACE(_fmt, _args...) do { } while(0)
#endif
+#define VWM_TRACE_WIN(_win, _fmt, _args...) \
+ VWM_TRACE("win=%#"PRIx64": "_fmt, (uint64_t)_win, ##_args)
+
#define MIN(_a, _b) ((_a) < (_b) ? (_a) : (_b))
#define MAX(_a, _b) ((_a) > (_b) ? (_a) : (_b))
#define NELEMS(_a) (sizeof(_a) / sizeof(_a[0]))
© All Rights Reserved