Go to the documentation of this file. 21 #define MOVE_RESIZE_MASK (XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y | \ 22 XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_HEIGHT) 24 #define LENGTH(x) (unsigned int)(sizeof(x) / sizeof(*x)) 26 #define FFT(c) (c->is_transient || c->is_floating || c->is_fullscreen) 28 #define UNUSED(x) (void)(x) 30 #define MAX_FD(x, y) ((x) > (y) ? (x + 1) : (y + 1)) 40 #define LOG_LEVEL LOG_DEBUG 43 #define DEBUG_ENABLE false 56 #if LOG_LEVEL == LOG_DEBUG 57 #define log_debug(M, ...) fprintf(stderr, "[DEBUG] (%s:%d) " M "\n", __FILE__, __LINE__, ##__VA_ARGS__) 59 #define log_debug(x, ...) do {} while (0) 63 #if LOG_LEVEL <= LOG_INFO 64 #define log_info(M, ...) fprintf(stderr, "[INFO] (%s:%d) " M "\n", __FILE__, __LINE__, ##__VA_ARGS__) 66 #define log_info(x, ...) do {} while (0) 69 #if LOG_LEVEL <= LOG_WARN 70 #define log_warn(M, ...) fprintf(stderr, "[WARN] (%s:%d) " M "\n", __FILE__, __LINE__, ##__VA_ARGS__) 72 #define log_warn(x, ...) do {} while (0) 75 #if LOG_LEVEL <= LOG_ERR 76 #define log_err(M, ...) fprintf(stderr, "[ERROR] (%s:%d) " M "\n", __FILE__, __LINE__, ##__VA_ARGS__) 78 #define log_err(x, ...) do {} while (0)