-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR-URL: #18852 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
- Loading branch information
Showing
7 changed files
with
69 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
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)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
macro DCHECK(x) = do { if (!(x)) (process._rawDebug("DCHECK: x == true"), process.abort()) } while (0); | ||
macro DCHECK_EQ(a, b) = DCHECK((a) === (b)); | ||
macro DCHECK_GE(a, b) = DCHECK((a) >= (b)); | ||
macro DCHECK_GT(a, b) = DCHECK((a) > (b)); | ||
macro DCHECK_LE(a, b) = DCHECK((a) <= (b)); | ||
macro DCHECK_LT(a, b) = DCHECK((a) < (b)); | ||
macro DCHECK_NE(a, b) = DCHECK((a) !== (b)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
macro DCHECK(x) = void(x); | ||
macro DCHECK_EQ(a, b) = void(a, b); | ||
macro DCHECK_GE(a, b) = void(a, b); | ||
macro DCHECK_GT(a, b) = void(a, b); | ||
macro DCHECK_LE(a, b) = void(a, b); | ||
macro DCHECK_LT(a, b) = void(a, b); | ||
macro DCHECK_NE(a, b) = void(a, b); |