V8
latest master commit
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
// Use if the object is only stack allocated.
11
#define CPPGC_STACK_ALLOCATED() \
12
public: \
13
using IsStackAllocatedTypeMarker = int; \
14
\
15
private: \
16
void* operator new(size_t) = delete; \
17
void* operator new(size_t, void*) = delete; \
18
static_assert(true, "Force semicolon.")
19
20
}
// namespace cppgc
21
22
#endif // INCLUDE_CPPGC_MACROS_H_
cppgc
Definition:
allocation.h:18
v8
include
cppgc
macros.h
Generated by
1.8.17