node_includes.h 1.2 KB

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