diff options
Diffstat (limited to 'src/inspector_io.h')
-rw-r--r-- | src/inspector_io.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/inspector_io.h b/src/inspector_io.h index e4b4ee44f8..0dfb08f470 100644 --- a/src/inspector_io.h +++ b/src/inspector_io.h @@ -1,18 +1,18 @@ -#ifndef SRC_INSPECTOR_IO_H_ -#define SRC_INSPECTOR_IO_H_ +#pragma once #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS +#if !HAVE_INSPECTOR +#error("This header can only be used when inspector is enabled") +#endif + #include "inspector_socket_server.h" #include "node_mutex.h" + #include "uv.h" -#include <memory> #include <cstddef> - -#if !HAVE_INSPECTOR -#error("This header can only be used when inspector is enabled") -#endif +#include <memory> namespace v8_inspector { @@ -93,5 +93,3 @@ class InspectorIo { } // namespace node #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS - -#endif // SRC_INSPECTOR_IO_H_ |