From bb7ffe1da2265ba39443d318133b67fea82c4d9e Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Wed, 14 Oct 2020 09:39:01 +0200 Subject: Simplify the FAIL macro --- json-rpc-shell.c | 6 +----- 1 file changed, 1 insertion(+), 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 /// 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 ---------------------------------------------------------------- -- cgit v1.2.3-70-g09d2