aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2020-10-14 09:39:01 +0200
committerPřemysl Eric Janouch <p@janouch.name>2020-10-14 12:25:21 +0200
commitbb7ffe1da2265ba39443d318133b67fea82c4d9e (patch)
tree3ab61dcd271ba2fd2598875b858a6e96ddfb8ddf
parentad1aba9d2298f310448b1a6bfba0d382efb8a03e (diff)
downloadjson-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.c6
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 ----------------------------------------------------------------