Simplify the FAIL macro

This commit is contained in:
Přemysl Eric Janouch 2020-10-14 09:39:01 +02:00
parent ad1aba9d22
commit bb7ffe1da2
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 1 additions and 5 deletions

View File

@ -67,11 +67,7 @@ enum
#include <term.h> #include <term.h>
/// Shorthand to set an error and return failure from the function /// Shorthand to set an error and return failure from the function
#define FAIL(...) \ #define FAIL(...) return error_set (e, __VA_ARGS__)
BLOCK_START \
error_set (e, __VA_ARGS__); \
return false; \
BLOCK_END
// --- Terminal ---------------------------------------------------------------- // --- Terminal ----------------------------------------------------------------