2014-10-31 18:17:05 +00:00
|
|
|
// 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
|
2013-12-11 07:48:19 +00:00
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2019-06-19 20:56:58 +00:00
|
|
|
#ifndef SHELL_COMMON_NODE_INCLUDES_H_
|
|
|
|
#define SHELL_COMMON_NODE_INCLUDES_H_
|
2013-12-11 07:48:19 +00:00
|
|
|
|
2013-12-15 06:20:28 +00:00
|
|
|
// Include common headers for using node APIs.
|
2013-12-11 07:48:19 +00:00
|
|
|
|
2018-07-11 17:43:52 +00:00
|
|
|
#ifdef NODE_SHARED_MODE
|
2015-04-01 13:33:08 +00:00
|
|
|
#define BUILDING_NODE_EXTENSION
|
2018-07-11 17:43:52 +00:00
|
|
|
#endif
|
2015-04-01 13:33:08 +00:00
|
|
|
|
2019-01-12 01:00:43 +00:00
|
|
|
#undef debug_string // This is defined in macOS SDK in AssertMacros.h.
|
|
|
|
#undef require_string // This is defined in macOS SDK in AssertMacros.h.
|
2020-09-17 22:08:57 +00:00
|
|
|
|
2021-08-18 20:34:15 +00:00
|
|
|
#include "electron/push_and_undef_node_defines.h"
|
|
|
|
|
2018-05-01 23:22:39 +00:00
|
|
|
#include "env-inl.h"
|
|
|
|
#include "env.h"
|
|
|
|
#include "node.h"
|
|
|
|
#include "node_buffer.h"
|
2021-05-11 20:57:11 +00:00
|
|
|
#include "node_errors.h"
|
2018-05-01 23:22:39 +00:00
|
|
|
#include "node_internals.h"
|
2021-08-18 20:34:15 +00:00
|
|
|
#include "node_native_module_env.h"
|
2020-02-09 18:42:02 +00:00
|
|
|
#include "node_options-inl.h"
|
2018-09-18 00:48:10 +00:00
|
|
|
#include "node_options.h"
|
2018-05-01 23:22:39 +00:00
|
|
|
#include "node_platform.h"
|
2020-09-17 22:08:57 +00:00
|
|
|
#include "tracing/agent.h"
|
2013-12-11 07:48:19 +00:00
|
|
|
|
2021-08-18 20:34:15 +00:00
|
|
|
#include "electron/pop_node_defines.h"
|
|
|
|
|
2019-03-08 18:29:52 +00:00
|
|
|
// Alternative to NODE_MODULE_CONTEXT_AWARE_X.
|
|
|
|
// Allows to explicitly register builtin modules instead of using
|
|
|
|
// __attribute__((constructor)).
|
|
|
|
#define NODE_LINKED_MODULE_CONTEXT_AWARE(modname, regfunc) \
|
|
|
|
NODE_MODULE_CONTEXT_AWARE_CPP(modname, regfunc, nullptr, NM_F_LINKED)
|
|
|
|
|
2019-06-19 20:56:58 +00:00
|
|
|
#endif // SHELL_COMMON_NODE_INCLUDES_H_
|