mirror of
https://github.com/vale981/bspwm
synced 2025-03-05 18:01:37 -05:00
25 lines
627 B
C
25 lines
627 B
C
#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")
|
|
|
|
#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
|
|
|
|
#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
|