node_includes.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 ATOM_COMMON_NODE_INCLUDES_H_
  5. #define ATOM_COMMON_NODE_INCLUDES_H_
  6. #include "base/logging.h"
  7. // Include common headers for using node APIs.
  8. #ifdef NODE_SHARED_MODE
  9. #define BUILDING_NODE_EXTENSION
  10. #endif
  11. // The following define makes sure that we do not include the macros
  12. // again. But we still need the tracing functions, so declaring them.
  13. #define SRC_TRACING_TRACE_EVENT_H_
  14. #undef ASSERT
  15. #undef CHECK
  16. #undef CHECK_EQ
  17. #undef CHECK_NE
  18. #undef CHECK_GE
  19. #undef CHECK_GT
  20. #undef CHECK_LE
  21. #undef CHECK_LT
  22. #undef UNLIKELY
  23. #undef DISALLOW_COPY_AND_ASSIGN
  24. #undef NO_RETURN
  25. #undef LIKELY
  26. #undef arraysize
  27. #undef debug_string // This is defined in macOS SDK in AssertMacros.h.
  28. #include "env-inl.h"
  29. #include "env.h"
  30. #include "node.h"
  31. #include "node_buffer.h"
  32. #include "node_internals.h"
  33. #include "node_options.h"
  34. #include "node_platform.h"
  35. namespace node {
  36. namespace tracing {
  37. class TraceEventHelper {
  38. public:
  39. static v8::TracingController* GetTracingController();
  40. static void SetTracingController(v8::TracingController* controller);
  41. };
  42. } // namespace tracing
  43. } // namespace node
  44. #endif // ATOM_COMMON_NODE_INCLUDES_H_