2013-12-29 03:11:50 +01:00
|
|
|
#pragma once
|
2011-07-10 14:33:19 +02:00
|
|
|
|
|
|
|
#include <err.h>
|
|
|
|
|
|
|
|
#define die(...) errx(EXIT_FAILURE, __VA_ARGS__);
|
2014-06-19 11:20:32 +02:00
|
|
|
#define FREE(pointer) \
|
|
|
|
do { \
|
2011-07-10 14:33:19 +02:00
|
|
|
if (pointer != NULL) { \
|
2014-06-19 11:20:32 +02:00
|
|
|
free(pointer); \
|
|
|
|
pointer = NULL; \
|
|
|
|
} \
|
|
|
|
} while (0)
|
2011-07-10 14:33:19 +02:00
|
|
|
|
2014-06-19 11:20:32 +02:00
|
|
|
#define xmacro(atom) xcb_atom_t A_##atom;
|
2011-07-10 14:33:19 +02:00
|
|
|
#include "atoms.xmacro"
|
|
|
|
#undef xmacro
|
|
|
|
|
|
|
|
extern xcb_window_t root;
|