src: add missing NODE_WANT_INTERNALS
guards
We generally add these to all headers that are considered internal to Node. These aren’t distributed as part of the headers tarball, so I think this does not have to be semver-major (and we have been changing the APIs in these headers freely anyway). PR-URL: https://github.com/nodejs/node/pull/22514 Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
66e6d7835e
commit
09fce8562a
@ -1,7 +1,8 @@
|
||||
|
||||
#ifndef SRC_ALIASED_BUFFER_H_
|
||||
#define SRC_ALIASED_BUFFER_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "v8.h"
|
||||
#include "util-inl.h"
|
||||
|
||||
@ -235,4 +236,6 @@ class AliasedBuffer {
|
||||
};
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_ALIASED_BUFFER_H_
|
||||
|
@ -1,6 +1,8 @@
|
||||
#ifndef SRC_INSPECTOR_AGENT_H_
|
||||
#define SRC_INSPECTOR_AGENT_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include <stddef.h>
|
||||
@ -120,4 +122,6 @@ class Agent {
|
||||
} // namespace inspector
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_INSPECTOR_AGENT_H_
|
||||
|
@ -1,6 +1,8 @@
|
||||
#ifndef SRC_INSPECTOR_IO_H_
|
||||
#define SRC_INSPECTOR_IO_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "inspector_socket_server.h"
|
||||
#include "node_mutex.h"
|
||||
#include "uv.h"
|
||||
@ -90,4 +92,6 @@ class InspectorIo {
|
||||
} // namespace inspector
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_INSPECTOR_IO_H_
|
||||
|
@ -1,6 +1,8 @@
|
||||
#ifndef SRC_INSPECTOR_SOCKET_H_
|
||||
#define SRC_INSPECTOR_SOCKET_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "util-inl.h"
|
||||
#include "uv.h"
|
||||
|
||||
@ -52,5 +54,6 @@ class InspectorSocket {
|
||||
} // namespace inspector
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_INSPECTOR_SOCKET_H_
|
||||
|
@ -1,6 +1,8 @@
|
||||
#ifndef SRC_INSPECTOR_SOCKET_SERVER_H_
|
||||
#define SRC_INSPECTOR_SOCKET_SERVER_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "inspector_agent.h"
|
||||
#include "inspector_socket.h"
|
||||
#include "uv.h"
|
||||
@ -98,4 +100,6 @@ class InspectorSocketServer {
|
||||
} // namespace inspector
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_INSPECTOR_SOCKET_SERVER_H_
|
||||
|
@ -1,6 +1,8 @@
|
||||
#ifndef SRC_NODE_CONTEXT_DATA_H_
|
||||
#define SRC_NODE_CONTEXT_DATA_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
namespace node {
|
||||
|
||||
// Pick an index that's hopefully out of the way when we're embedded inside
|
||||
@ -37,4 +39,6 @@ enum ContextEmbedderIndex {
|
||||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_NODE_CONTEXT_DATA_H_
|
||||
|
@ -1,6 +1,8 @@
|
||||
#ifndef SRC_NODE_CONTEXTIFY_H_
|
||||
#define SRC_NODE_CONTEXTIFY_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "node_internals.h"
|
||||
#include "node_context_data.h"
|
||||
|
||||
@ -107,4 +109,6 @@ class ContextifyContext {
|
||||
} // namespace contextify
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_NODE_CONTEXTIFY_H_
|
||||
|
@ -1,6 +1,8 @@
|
||||
#ifndef SRC_NODE_MUTEX_H_
|
||||
#define SRC_NODE_MUTEX_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "util.h"
|
||||
#include "uv.h"
|
||||
|
||||
@ -184,4 +186,6 @@ MutexBase<Traits>::ScopedUnlock::~ScopedUnlock() {
|
||||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_NODE_MUTEX_H_
|
||||
|
@ -1,6 +1,8 @@
|
||||
#ifndef SRC_NODE_PERF_COMMON_H_
|
||||
#define SRC_NODE_PERF_COMMON_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include "node.h"
|
||||
#include "v8.h"
|
||||
|
||||
@ -87,4 +89,6 @@ class performance_state {
|
||||
} // namespace performance
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_NODE_PERF_COMMON_H_
|
||||
|
@ -1,6 +1,8 @@
|
||||
#ifndef SRC_NODE_PLATFORM_H_
|
||||
#define SRC_NODE_PLATFORM_H_
|
||||
|
||||
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#include <queue>
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
@ -158,4 +160,6 @@ class NodePlatform : public MultiIsolatePlatform {
|
||||
|
||||
} // namespace node
|
||||
|
||||
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
||||
|
||||
#endif // SRC_NODE_PLATFORM_H_
|
||||
|
Loading…
x
Reference in New Issue
Block a user