X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=i3-nagbar%2Fi3-nagbar.h;h=cb672bead868f59460f5735f94c611e444b4783f;hb=db0add0f11995d4273c76c3c1ad3ab131cea6a99;hp=379a7f6f7e4b67a49f0a1c0652234447cc258bc1;hpb=0aa306890b66047aacb4863df0cfdfd6f46361e6;p=i3%2Fi3 diff --git a/i3-nagbar/i3-nagbar.h b/i3-nagbar/i3-nagbar.h index 379a7f6f..cb672bea 100644 --- a/i3-nagbar/i3-nagbar.h +++ b/i3-nagbar/i3-nagbar.h @@ -1,21 +1,18 @@ -#ifndef I3_NAGBAR -#define I3_NAGBAR +#pragma once + +#include #include #define die(...) errx(EXIT_FAILURE, __VA_ARGS__); -#define FREE(pointer) do { \ - if (pointer != NULL) { \ - free(pointer); \ - pointer = NULL; \ - } \ -} \ -while (0) +#define FREE(pointer) \ + do { \ + free(pointer); \ + pointer = NULL; \ + } while (0) -#define xmacro(atom) xcb_atom_t A_ ## atom; +#define xmacro(atom) xcb_atom_t A_##atom; #include "atoms.xmacro" #undef xmacro extern xcb_window_t root; - -#endif