diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2020-10-14 09:39:01 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2020-10-14 12:25:21 +0200 |
commit | bb7ffe1da2265ba39443d318133b67fea82c4d9e (patch) | |
tree | 3ab61dcd271ba2fd2598875b858a6e96ddfb8ddf | |
parent | ad1aba9d2298f310448b1a6bfba0d382efb8a03e (diff) | |
download | json-rpc-shell-bb7ffe1da2265ba39443d318133b67fea82c4d9e.tar.gz json-rpc-shell-bb7ffe1da2265ba39443d318133b67fea82c4d9e.tar.xz json-rpc-shell-bb7ffe1da2265ba39443d318133b67fea82c4d9e.zip |
Simplify the FAIL macro
-rw-r--r-- | json-rpc-shell.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/json-rpc-shell.c b/json-rpc-shell.c index 72e14a4..15eead2 100644 --- a/json-rpc-shell.c +++ b/json-rpc-shell.c @@ -67,11 +67,7 @@ enum #include <term.h> /// Shorthand to set an error and return failure from the function -#define FAIL(...) \ - BLOCK_START \ - error_set (e, __VA_ARGS__); \ - return false; \ - BLOCK_END +#define FAIL(...) return error_set (e, __VA_ARGS__) // --- Terminal ---------------------------------------------------------------- |