use C++ throw methods instead of printf and exit
This commit is contained in:
parent
9655d0c138
commit
0d7a8cca79
3 changed files with 8 additions and 15 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue