mirror of
https://github.com/nodejs/node.git
synced 2024-11-29 23:16:30 +01:00
3ed363cb36
PR-URL: https://github.com/nodejs/node/pull/18852 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
8 lines
354 B
Python
8 lines
354 B
Python
macro CHECK(x) = do { if (!(x)) (process._rawDebug("CHECK: x == true"), process.abort()) } while (0);
|
|
macro CHECK_EQ(a, b) = CHECK((a) === (b));
|
|
macro CHECK_GE(a, b) = CHECK((a) >= (b));
|
|
macro CHECK_GT(a, b) = CHECK((a) > (b));
|
|
macro CHECK_LE(a, b) = CHECK((a) <= (b));
|
|
macro CHECK_LT(a, b) = CHECK((a) < (b));
|
|
macro CHECK_NE(a, b) = CHECK((a) !== (b));
|