Use libdraw: add Xft and fallback-fonts support to graphics lib
[dmenu.git] / util.h
diff --git a/util.h b/util.h
new file mode 100644 (file)
index 0000000..f7ce721
--- /dev/null
+++ b/util.h
@@ -0,0 +1,7 @@
+/* See LICENSE file for copyright and license details. */
+
+#define MAX(A, B)               ((A) > (B) ? (A) : (B))
+#define MIN(A, B)               ((A) < (B) ? (A) : (B))
+#define BETWEEN(X, A, B)        ((A) <= (X) && (X) <= (B))
+
+void die(const char *errstr, ...);