mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2024-11-24 13:53:07 +01:00
Minor
This commit is contained in:
parent
c3ad27a830
commit
852f8af0a3
@ -6,13 +6,12 @@
|
||||
#define CHECK(f, cond) \
|
||||
do { \
|
||||
int x = (f); \
|
||||
if (cond) \
|
||||
if (!(cond)) \
|
||||
return x; \
|
||||
} while (0)
|
||||
|
||||
#define CHECK_OK(f) CHECK(f, x != STAT_OK)
|
||||
#define CHECK_NULL(f) CHECK(f, x != STAT_NULL)
|
||||
#define CHECK_OK_NULL(f) CHECK(f, x != STAT_OK || x != STAT_NULL)
|
||||
#define CHECK_OK(f) CHECK(f, x == STAT_OK)
|
||||
#define CHECK_NULL(f) CHECK(f, x == STAT_NULL)
|
||||
|
||||
#define EXPECT(x) CHECK_OK(expect(x))
|
||||
#define ACCEPT(x) CHECK_OK(accept(x))
|
||||
|
Loading…
Reference in New Issue
Block a user