electron/atom/common/node_includes.h

52 lines
1.3 KiB
C
Raw Normal View History

// Copyright (c) 2013 GitHub, Inc.
2014-04-25 09:49:37 +00:00
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef ATOM_COMMON_NODE_INCLUDES_H_
#define ATOM_COMMON_NODE_INCLUDES_H_
#include "base/logging.h"
#include "v8-platform.h" // NOLINT
// Include common headers for using node APIs.
2015-04-01 13:33:08 +00:00
#define BUILDING_NODE_EXTENSION
// 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 04:53:06 +00:00
#undef ASSERT
#undef CHECK
2014-01-10 10:24:44 +00:00
#undef CHECK_EQ
#undef CHECK_NE
2014-06-28 11:31:23 +00:00
#undef CHECK_GE
#undef CHECK_GT
#undef CHECK_LE
#undef CHECK_LT
2016-07-21 06:51:57 +00:00
#undef UNLIKELY
#undef DISALLOW_COPY_AND_ASSIGN
2015-01-07 04:53:06 +00:00
#undef NO_RETURN
2017-01-23 06:53:29 +00:00
#undef LIKELY
2016-05-10 02:05:42 +00:00
#undef arraysize
2016-06-18 13:26:26 +00:00
#undef debug_string // This is defined in macOS 10.9 SDK in AssertMacros.h.
#include "vendor/node/src/env.h"
#include "vendor/node/src/env-inl.h"
#include "vendor/node/src/node.h"
#include "vendor/node/src/node_buffer.h"
#include "vendor/node/src/node_debug_options.h"
#include "vendor/node/src/node_internals.h"
#include "vendor/node/src/node_platform.h"
#endif // ATOM_COMMON_NODE_INCLUDES_H_