bspwm/helpers.h

26 lines
627 B
C
Raw Normal View History

2012-08-20 22:38:29 +02:00
#ifndef _HELPERS_H
#define _HELPERS_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 BOOLSTR(A) ((A) ? "true" : "false")
2012-09-10 13:47:51 +02:00
#define MAXLEN 256
#define XCB_CONFIG_WINDOW_X_Y_WIDTH_HEIGHT XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y | XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_HEIGHT
2012-09-04 21:01:50 +02:00
2012-08-20 22:38:29 +02:00
#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,
true
} bool;
#endif