Simplify the FAIL macro
This commit is contained in:
parent
ad1aba9d22
commit
bb7ffe1da2
|
@ -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 ----------------------------------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue