use C++ throw methods instead of printf and exit

This commit is contained in:
vaxerski
2022-07-06 16:17:58 +02:00
parent 9655d0c138
commit 0d7a8cca79
3 changed files with 8 additions and 15 deletions

View File

@@ -16,8 +16,6 @@
#define ISDEBUG false
#endif
#define RIP(format, ... ) { fprintf(stderr, format "\n", ##__VA_ARGS__); exit(EXIT_FAILURE); }
#define LISTENER(name) void listener_##name(wl_listener*, void*); inline wl_listener listen_##name = { .notify = listener_##name };
#define DYNLISTENFUNC(name) void listener_##name(void*, void*);
#define DYNLISTENER(name) CHyprWLListener hyprListener_##name;