2013-12-28 21:11:50 -05:00
|
|
|
#pragma once
|
2009-09-20 09:44:14 -04:00
|
|
|
|
|
|
|
#include <err.h>
|
|
|
|
|
|
|
|
#define die(...) errx(EXIT_FAILURE, __VA_ARGS__);
|
2014-06-19 05:20:32 -04:00
|
|
|
#define FREE(pointer) \
|
|
|
|
do { \
|
2011-01-12 04:12:24 -05:00
|
|
|
if (pointer != NULL) { \
|
2014-06-19 05:20:32 -04:00
|
|
|
free(pointer); \
|
|
|
|
pointer = NULL; \
|
|
|
|
} \
|
|
|
|
} while (0)
|
2009-09-20 09:44:14 -04:00
|
|
|
|
2011-01-27 18:41:53 -05:00
|
|
|
extern xcb_window_t root;
|