From 50aa44c59b97c59f08dc482fa9d93bd1dc281ab0 Mon Sep 17 00:00:00 2001 From: "Devin J. Pohly" Date: Fri, 31 Jul 2020 09:57:59 -0500 Subject: [PATCH] add tag bitset check from dwm --- dwl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dwl.c b/dwl.c index 3cacba3..f0c599b 100644 --- a/dwl.c +++ b/dwl.c @@ -274,6 +274,9 @@ static struct wl_listener xwayland_ready = {.notify = xwaylandready}; /* configuration, allows nested code to access above variables */ #include "config.h" +/* compile-time check if all tags fit into an unsigned int bit array. */ +struct NumTags { char limitexceeded[LENGTH(tags) > 31 ? -1 : 1]; }; + /* function implementations */ void activatex11(struct wl_listener *listener, void *data)