node_includes.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // Copyright (c) 2013 GitHub, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #ifndef SHELL_COMMON_NODE_INCLUDES_H_
  5. #define SHELL_COMMON_NODE_INCLUDES_H_
  6. // Include common headers for using node APIs.
  7. #ifdef NODE_SHARED_MODE
  8. #define BUILDING_NODE_EXTENSION
  9. #endif
  10. #undef debug_string // This is defined in macOS SDK in AssertMacros.h.
  11. #undef require_string // This is defined in macOS SDK in AssertMacros.h.
  12. #include "electron/push_and_undef_node_defines.h"
  13. #include "env-inl.h"
  14. #include "env.h"
  15. #include "node.h"
  16. #include "node_buffer.h"
  17. #include "node_errors.h"
  18. #include "node_internals.h"
  19. #include "node_native_module_env.h"
  20. #include "node_options-inl.h"
  21. #include "node_options.h"
  22. #include "node_platform.h"
  23. #include "tracing/agent.h"
  24. #include "electron/pop_node_defines.h"
  25. // Alternative to NODE_MODULE_CONTEXT_AWARE_X.
  26. // Allows to explicitly register builtin modules instead of using
  27. // __attribute__((constructor)).
  28. #define NODE_LINKED_MODULE_CONTEXT_AWARE(modname, regfunc) \
  29. NODE_MODULE_CONTEXT_AWARE_CPP(modname, regfunc, nullptr, NM_F_LINKED)
  30. #endif // SHELL_COMMON_NODE_INCLUDES_H_