X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=i3-nagbar%2Fi3-nagbar.h;h=fc076d728f8a099f80d9875c721d86eb42cc342d;hb=d9c2ce0023be76f2e8873d7e0057dd2af99339db;hp=5a21226bb532a8f9681bc328a7fd2342163a8c94;hpb=f4469eee0b0988c082a5df580c24c15b5eed2c2e;p=i3%2Fi3 diff --git a/i3-nagbar/i3-nagbar.h b/i3-nagbar/i3-nagbar.h index 5a21226b..fc076d72 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 #define die(...) errx(EXIT_FAILURE, __VA_ARGS__); -#define FREE(pointer) do { \ +#define FREE(pointer) \ + do { \ if (pointer != NULL) { \ - free(pointer); \ - pointer = NULL; \ - } \ -} \ -while (0) + 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