Skip to content

Commit

Permalink
test: do not lint macros files (again)
Browse files Browse the repository at this point in the history
PR-URL: nodejs#24886
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
  • Loading branch information
cclauss authored and refack committed Jan 10, 2019
1 parent d1133af commit 5e3e601
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/notrace_macros.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# This file is used by tools/js2c.py to preprocess out the DTRACE symbols in
# builds that don't support DTrace. This is not used in builds that support
# DTrace.

# flake8: noqa

macro DTRACE_HTTP_CLIENT_REQUEST(x) = ;
macro DTRACE_HTTP_CLIENT_RESPONSE(x) = ;
macro DTRACE_HTTP_SERVER_REQUEST(x) = ;
Expand Down
2 changes: 2 additions & 0 deletions tools/dcheck_macros.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# flake8: noqa

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));
Expand Down
2 changes: 2 additions & 0 deletions tools/nodcheck_macros.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# flake8: noqa

macro DCHECK(x) = void(x);
macro DCHECK_EQ(a, b) = void(a, b);
macro DCHECK_GE(a, b) = void(a, b);
Expand Down

0 comments on commit 5e3e601

Please sign in to comment.