4 #define LENGTH(x) (sizeof(x) / sizeof(*x))
5 #define MAX(A, B) ((A) > (B) ? (A) : (B))
6 #define MIN(A, B) ((A) < (B) ? (A) : (B))
7 #define BOOLSTR(A) ((A) ? "true" : "false")
10 #define XCB_CONFIG_WINDOW_X_Y_WIDTH_HEIGHT XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y | XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_HEIGHT
13 # define PUTS(x) puts(x);
14 # define PRINTF(x,...) printf(x, ##__VA_ARGS__);