summaryrefslogtreecommitdiff
path: root/src/inspector_agent.h
diff options
context:
space:
mode:
authorRefael Ackermann <refack@gmail.com>2019-02-25 17:27:19 -0500
committerRefael Ackermann <refack@gmail.com>2019-03-12 09:57:19 -0400
commitf2064dfc1fee2daa0537bc27d79d5aa0f734faaf (patch)
tree8e7c60ae471af748fe710193a3662d13de25c3fe /src/inspector_agent.h
parent902998190a55d6915b881936f6dd5b6e9cca6ad8 (diff)
downloadnode-new-f2064dfc1fee2daa0537bc27d79d5aa0f734faaf.tar.gz
src: de-lint header usage
PR-URL: https://github.com/nodejs/node/pull/26306 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Diffstat (limited to 'src/inspector_agent.h')
-rw-r--r--src/inspector_agent.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/inspector_agent.h b/src/inspector_agent.h
index b8b03b2edc..aa89fbba6b 100644
--- a/src/inspector_agent.h
+++ b/src/inspector_agent.h
@@ -1,12 +1,7 @@
-#ifndef SRC_INSPECTOR_AGENT_H_
-#define SRC_INSPECTOR_AGENT_H_
+#pragma once
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
-#include <memory>
-
-#include <cstddef>
-
#if !HAVE_INSPECTOR
#error("This header can only be used when inspector is enabled")
#endif
@@ -15,6 +10,9 @@
#include "node_persistent.h"
#include "v8.h"
+#include <cstddef>
+#include <memory>
+
namespace v8_inspector {
class StringView;
} // namespace v8_inspector
@@ -143,5 +141,3 @@ class Agent {
} // namespace node
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
-
-#endif // SRC_INSPECTOR_AGENT_H_