v8
8.6.395 (node 15.0.1)
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
#
include
"cppgc/internal/compiler-specific.h"
9
10
namespace
cppgc
{
11
12
// Use if the object is only stack allocated.
13
#
define
CPPGC_STACK_ALLOCATED
(
)
14
public
:
15
using
IsStackAllocatedTypeMarker
CPPGC_UNUSED
=
int
;
16
17
private
:
18
void
*
operator
new
(
size_t
)
=
delete
;
19
void
*
operator
new
(
size_t
,
void
*
)
=
delete
;
20
static_assert
(
true
,
"Force semicolon."
)
21
22
}
// namespace cppgc
23
24
#
endif
// INCLUDE_CPPGC_MACROS_H_
include
cppgc
macros.h
Generated on Fri Oct 29 2021 20:08:07 for v8 by
1.9.1