From dbe7629467e1d69c49f60dc2b00943ea7c5e5019 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Mon, 27 Nov 2017 11:09:46 -0800 Subject: util: introduce VWM_TRACE_WIN() convenience macro --- src/util.h | 4 ++++ 1 file changed, 4 insertions(+) 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 +#include #include #include @@ -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])) -- cgit v1.2.3