This commit is contained in:
Nikita Ivanov 2022-06-17 04:22:22 +05:00
parent ed265a7af6
commit 2ac76f7b10
No known key found for this signature in database
GPG Key ID: 6E656AC5B97B5133

View File

@ -73,13 +73,10 @@
ERRCHK_GOTO_MSG(cond, ret, label, strerror(errno)) ERRCHK_GOTO_MSG(cond, ret, label, strerror(errno))
/* /*
* Shortcut for ERRCHK_RET(expr != OK) * Shortcut for ERRCHK_*_RET(expr != OK)
*/ */
#define ERRCHK_RET_OK(expr, ...) \ #define ERRCHK_RET_OK(e) ERRCHK_RET((e) != OK)
ERRCHK_RET((expr) != OK __VA_OPT__(, ) __VA_ARGS__) #define ERRCHK_GOTO_OK(e, r, l) ERRCHK_GOTO((e) != OK, r, l)
#define ERRCHK_GOTO_OK(expr, ...) \
ERRCHK_GOTO((expr) != OK __VA_OPT__(, ) __VA_ARGS__)
enum { enum {
OK, OK,