2014-10-31 21:17:05 +03:00
|
|
|
// Copyright (c) 2013 GitHub, Inc.
|
2014-04-25 13:49:37 +04:00
|
|
|
// Use of this source code is governed by the MIT license that can be
|
2013-12-11 11:48:19 +04:00
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2014-04-17 09:45:14 +04:00
|
|
|
#ifndef ATOM_COMMON_NODE_INCLUDES_H_
|
|
|
|
#define ATOM_COMMON_NODE_INCLUDES_H_
|
2013-12-11 11:48:19 +04:00
|
|
|
|
2015-09-07 11:29:54 +03:00
|
|
|
#include "base/logging.h"
|
2018-03-12 10:08:43 +03:00
|
|
|
#include "v8-platform.h" // NOLINT
|
2015-09-07 11:29:54 +03:00
|
|
|
|
2013-12-15 10:20:28 +04:00
|
|
|
// Include common headers for using node APIs.
|
2013-12-11 11:48:19 +04:00
|
|
|
|
2015-04-01 16:33:08 +03:00
|
|
|
#define BUILDING_NODE_EXTENSION
|
|
|
|
|
2018-03-12 08:22:34 +03:00
|
|
|
// The following define makes sure that we do not include the macros
|
|
|
|
// again. But we still need the tracing functions, so declaring them.
|
|
|
|
#define SRC_TRACING_TRACE_EVENT_H_
|
|
|
|
namespace node {
|
|
|
|
namespace tracing {
|
|
|
|
class TraceEventHelper {
|
|
|
|
public:
|
|
|
|
static v8::TracingController* GetTracingController();
|
|
|
|
static void SetTracingController(v8::TracingController* controller);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-01-07 07:53:06 +03:00
|
|
|
#undef ASSERT
|
2013-12-11 11:48:19 +04:00
|
|
|
#undef CHECK
|
2014-01-10 14:24:44 +04:00
|
|
|
#undef CHECK_EQ
|
|
|
|
#undef CHECK_NE
|
2014-06-28 15:31:23 +04:00
|
|
|
#undef CHECK_GE
|
|
|
|
#undef CHECK_GT
|
|
|
|
#undef CHECK_LE
|
|
|
|
#undef CHECK_LT
|
2016-07-21 09:51:57 +03:00
|
|
|
#undef UNLIKELY
|
2013-12-11 11:48:19 +04:00
|
|
|
#undef DISALLOW_COPY_AND_ASSIGN
|
2015-01-07 07:53:06 +03:00
|
|
|
#undef NO_RETURN
|
2017-01-23 09:53:29 +03:00
|
|
|
#undef LIKELY
|
2016-05-10 05:05:42 +03:00
|
|
|
#undef arraysize
|
2016-06-18 16:26:26 +03:00
|
|
|
#undef debug_string // This is defined in macOS 10.9 SDK in AssertMacros.h.
|
2013-12-11 11:48:19 +04:00
|
|
|
#include "vendor/node/src/env.h"
|
2013-12-16 10:46:05 +04:00
|
|
|
#include "vendor/node/src/env-inl.h"
|
2013-12-11 11:48:19 +04:00
|
|
|
#include "vendor/node/src/node.h"
|
2014-04-22 19:07:21 +04:00
|
|
|
#include "vendor/node/src/node_buffer.h"
|
2017-05-15 19:30:55 +03:00
|
|
|
#include "vendor/node/src/node_debug_options.h"
|
2013-12-11 11:48:19 +04:00
|
|
|
#include "vendor/node/src/node_internals.h"
|
2017-11-03 12:01:34 +03:00
|
|
|
#include "vendor/node/src/node_platform.h"
|
2013-12-11 11:48:19 +04:00
|
|
|
|
2014-04-17 09:45:14 +04:00
|
|
|
#endif // ATOM_COMMON_NODE_INCLUDES_H_
|