GeezerVison is showing github.com — src: add include guards to internal headers · juliens/node@eff96d3
File treeExpand file treeCollapse file tree Open diff view settings Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: node.gyp +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 706 | 706 | 'GTEST_DONT_DEFINE_ASSERT_LE=1', | 707 | 707 | 'GTEST_DONT_DEFINE_ASSERT_LT=1', | 708 | 708 | 'GTEST_DONT_DEFINE_ASSERT_NE=1', | | 709 | + 'NODE_WANT_INTERNALS=1', | 709 | 710 | ], | 710 | 711 | 'sources': [ | 711 | 712 | 'test/cctest/util.cc', | |
Collapse file Copy file name to clipboardExpand all lines: src/async-wrap-inl.h +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | #ifndef SRC_ASYNC_WRAP_INL_H_ | 2 | 2 | #define SRC_ASYNC_WRAP_INL_H_ | 3 | 3 |
| | 4 | +#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS | | 5 | + | 4 | 6 | #include "async-wrap.h" | 5 | 7 | #include "base-object.h" | 6 | 8 | #include "base-object-inl.h" | @@ -120,4 +122,6 @@ inline v8::Local<v8::Value> AsyncWrap::MakeCallback( | 120 | 122 |
| 121 | 123 | } // namespace node | 122 | 124 |
| | 125 | +#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS | | 126 | + | 123 | 127 | #endif // SRC_ASYNC_WRAP_INL_H_ |
Collapse file Copy file name to clipboardExpand all lines: src/async-wrap.h +3Lines changed: 3 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | #ifndef SRC_ASYNC_WRAP_H_ | 2 | 2 | #define SRC_ASYNC_WRAP_H_ | 3 | 3 |
| | 4 | +#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS | | 5 | + | 4 | 6 | #include "base-object.h" | 5 | 7 | #include "v8.h" | 6 | 8 |
| @@ -86,5 +88,6 @@ void LoadAsyncWrapperInfo(Environment* env); | 86 | 88 |
| 87 | 89 | } // namespace node | 88 | 90 |
| | 91 | +#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS | 89 | 92 |
| 90 | 93 | #endif // SRC_ASYNC_WRAP_H_ |
Collapse file Copy file name to clipboardExpand all lines: src/base-object-inl.h +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | #ifndef SRC_BASE_OBJECT_INL_H_ | 2 | 2 | #define SRC_BASE_OBJECT_INL_H_ | 3 | 3 |
| | 4 | +#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS | | 5 | + | 4 | 6 | #include "base-object.h" | 5 | 7 | #include "env.h" | 6 | 8 | #include "env-inl.h" | @@ -68,4 +70,6 @@ inline void BaseObject::ClearWeak() { | 68 | 70 |
| 69 | 71 | } // namespace node | 70 | 72 |
| | 73 | +#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS | | 74 | + | 71 | 75 | #endif // SRC_BASE_OBJECT_INL_H_ |
Collapse file Copy file name to clipboardExpand all lines: src/base-object.h +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | #ifndef SRC_BASE_OBJECT_H_ | 2 | 2 | #define SRC_BASE_OBJECT_H_ | 3 | 3 |
| | 4 | +#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS | | 5 | + | 4 | 6 | #include "v8.h" | 5 | 7 |
| 6 | 8 | namespace node { | @@ -48,4 +50,6 @@ class BaseObject { | 48 | 50 |
| 49 | 51 | } // namespace node | 50 | 52 |
| | 53 | +#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS | | 54 | + | 51 | 55 | #endif // SRC_BASE_OBJECT_H_ |
Collapse file Copy file name to clipboardExpand all lines: src/debug-agent.h +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 22 | 22 | #ifndef SRC_DEBUG_AGENT_H_ | 23 | 23 | #define SRC_DEBUG_AGENT_H_ | 24 | 24 |
| | 25 | +#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS | | 26 | + | 25 | 27 | #include "util.h" | 26 | 28 | #include "util-inl.h" | 27 | 29 | #include "uv.h" | @@ -132,4 +134,6 @@ class Agent { | 132 | 134 | } // namespace debugger | 133 | 135 | } // namespace node | 134 | 136 |
| | 137 | +#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS | | 138 | + | 135 | 139 | #endif // SRC_DEBUG_AGENT_H_ |
Collapse file Copy file name to clipboardExpand all lines: src/env-inl.h +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | #ifndef SRC_ENV_INL_H_ | 2 | 2 | #define SRC_ENV_INL_H_ | 3 | 3 |
| | 4 | +#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS | | 5 | + | 4 | 6 | #include "env.h" | 5 | 7 | #include "node.h" | 6 | 8 | #include "util.h" | @@ -576,4 +578,6 @@ inline v8::Local<v8::Object> Environment::NewInternalFieldObject() { | 576 | 578 |
| 577 | 579 | } // namespace node | 578 | 580 |
| | 581 | +#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS | | 582 | + | 579 | 583 | #endif // SRC_ENV_INL_H_ |
Collapse file Copy file name to clipboardExpand all lines: src/env.h +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | #ifndef SRC_ENV_H_ | 2 | 2 | #define SRC_ENV_H_ | 3 | 3 |
| | 4 | +#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS | | 5 | + | 4 | 6 | #include "ares.h" | 5 | 7 | #include "debug-agent.h" | 6 | 8 | #include "handle_wrap.h" | @@ -647,4 +649,6 @@ class Environment { | 647 | 649 |
| 648 | 650 | } // namespace node | 649 | 651 |
| | 652 | +#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS | | 653 | + | 650 | 654 | #endif // SRC_ENV_H_ |
Collapse file Copy file name to clipboardExpand all lines: src/handle_wrap.h +3Lines changed: 3 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | #ifndef SRC_HANDLE_WRAP_H_ | 2 | 2 | #define SRC_HANDLE_WRAP_H_ | 3 | 3 |
| | 4 | +#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS | | 5 | + | 4 | 6 | #include "async-wrap.h" | 5 | 7 | #include "util.h" | 6 | 8 | #include "uv.h" | @@ -69,5 +71,6 @@ class HandleWrap : public AsyncWrap { | 69 | 71 |
| 70 | 72 | } // namespace node | 71 | 73 |
| | 74 | +#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS | 72 | 75 |
| 73 | 76 | #endif // SRC_HANDLE_WRAP_H_ |
Collapse file Copy file name to clipboardExpand all lines: src/js_stream.h +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | #ifndef SRC_JS_STREAM_H_ | 2 | 2 | #define SRC_JS_STREAM_H_ | 3 | 3 |
| | 4 | +#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS | | 5 | + | 4 | 6 | #include "async-wrap.h" | 5 | 7 | #include "env.h" | 6 | 8 | #include "stream_base.h" | @@ -48,4 +50,6 @@ class JSStream : public AsyncWrap, public StreamBase { | 48 | 50 |
| 49 | 51 | } // namespace node | 50 | 52 |
| | 53 | +#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS | | 54 | + | 51 | 55 | #endif // SRC_JS_STREAM_H_ |
|