diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-03-16 21:37:21 +0100 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-03-16 21:37:21 +0100 |
| commit | ffd309ca2adc313f2aaaea08b4cac9553982b48c (patch) | |
| tree | a7c1a0a6df56069bef6868de5ef5a9531dd2386a /src/defines.hpp | |
| parent | de4c836e97a5798a09bcf96fbdf4cbaf29b0dc5e (diff) | |
some basic startup code
Diffstat (limited to 'src/defines.hpp')
| -rw-r--r-- | src/defines.hpp | 4 |
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 |
