X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/35db6d8afc3fd9f80166feac6c1e4adf71d553c3..14343e69cc596b847f71f1e825d3019ab1a29aa8:/util.h diff --git a/util.h b/util.h index 033700c..f7ce721 100644 --- a/util.h +++ b/util.h @@ -2,5 +2,6 @@ #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, ...);