v8  8.4.371 (node 14.15.5)
V8 is Google's open source JavaScript engine
macros.h
Go to the documentation of this file.
1 // Copyright 2020 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef INCLUDE_CPPGC_MACROS_H_
6 #define INCLUDE_CPPGC_MACROS_H_
7 
8 namespace cppgc {
9 
10 namespace internal {
12 } // namespace internal
13 
14 // Use if the object is only stack allocated.
15 #define CPPGC_STACK_ALLOCATED()
16  public:
17  using IsStackAllocatedTypeMarker = int;
18 
19  private:
20  void* operator new(size_t) = delete;
21  void* operator new(size_t, void*) = delete;
22  friend class internal::__thisIsHereToForceASemicolonAfterThisMacro
23 
24 } // namespace cppgc
25 
26 #endif // INCLUDE_CPPGC_MACROS_H_