]> git.sur5r.net Git - i3/i3/blob - i3-nagbar/i3-nagbar.h
Merge pull request #1651 from tanderson92/pkgconfig
[i3/i3] / i3-nagbar / i3-nagbar.h
1 #pragma once
2
3 #include <err.h>
4
5 #define die(...) errx(EXIT_FAILURE, __VA_ARGS__);
6 #define FREE(pointer)          \
7     do {                       \
8         if (pointer != NULL) { \
9             free(pointer);     \
10             pointer = NULL;    \
11         }                      \
12     } while (0)
13
14 #define xmacro(atom) xcb_atom_t A_##atom;
15 #include "atoms.xmacro"
16 #undef xmacro
17
18 extern xcb_window_t root;