X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=utils.h;h=22e2c883119bc6fe69dd558f5a80340dd63f9673;hb=10599b94f040092f189787e5e555aca26c6af0ed;hp=c7fd844a2cfc134e862a45f1230d4aedbb2a9c1f;hpb=0b57a9880a4e12a471b49544b556649e35087de5;p=bspwm.git diff --git a/utils.h b/utils.h index c7fd844..22e2c88 100644 --- a/utils.h +++ b/utils.h @@ -1,9 +1,18 @@ #ifndef _UTILS_H #define _UTILS_H -#define LENGTH(x) (sizeof(x) / sizeof(*x)) -#define MAX(A, B) ((A) > (B) ? (A) : (B)) -#define MIN(A, B) ((A) < (B) ? (A) : (B)) +#define LENGTH(x) (sizeof(x) / sizeof(*x)) +#define MAX(A, B) ((A) > (B) ? (A) : (B)) +#define MIN(A, B) ((A) < (B) ? (A) : (B)) +#define RESPONSE_TYPE(e) (e->response_type & ~0x80) + +#if 1 +# define PUTS(x) puts(x); +# define PRINTF(x,...) printf(x, ##__VA_ARGS__); +#else +# define PUTS(x) ; +# define PRINTF(x) ; +#endif typedef enum { false,