summaryrefslogtreecommitdiff
path: root/src/defines.hpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-16 21:37:21 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-16 21:37:21 +0100
commitffd309ca2adc313f2aaaea08b4cac9553982b48c (patch)
treea7c1a0a6df56069bef6868de5ef5a9531dd2386a /src/defines.hpp
parentde4c836e97a5798a09bcf96fbdf4cbaf29b0dc5e (diff)
some basic startup code
Diffstat (limited to 'src/defines.hpp')
-rw-r--r--src/defines.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/defines.hpp b/src/defines.hpp
index f72dbb18..ecf90ae8 100644
--- a/src/defines.hpp
+++ b/src/defines.hpp
@@ -6,4 +6,6 @@
#define ISDEBUG false
#endif
-#define RIP(format, ... ) { fprintf(stderr, format "\n", ##__VA_ARGS__); exit(EXIT_FAILURE); } \ No newline at end of file
+#define RIP(format, ... ) { fprintf(stderr, format "\n", ##__VA_ARGS__); exit(EXIT_FAILURE); }
+
+#define LISTENER(name) inline wl_listener listener_##name = {.notify = ##name}; \ No newline at end of file