commit 50aa44c59b97c59f08dc482fa9d93bd1dc281ab0
parent 4e57dbd9223c647ece506f5f1fc1465802c13c85
Author: Devin J. Pohly <djpohly@gmail.com>
Date: Fri, 31 Jul 2020 09:57:59 -0500
add tag bitset check from dwm
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git 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)