v8
12.4.254 (node 22.4.1)
V8 is Google's open source JavaScript engine
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Functions
a
c
d
e
f
g
i
j
m
n
o
p
r
s
t
u
v
Variables
f
g
i
k
m
t
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
w
Enumerations
a
b
c
e
g
h
i
j
k
l
m
n
p
r
s
t
w
Enumerator
a
b
c
d
e
g
i
j
k
n
o
p
r
s
v
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
a
b
c
d
f
g
i
m
n
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
Enumerator
b
c
d
e
h
j
k
n
o
p
r
s
t
u
w
Related Symbols
:
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Files
File List
Globals
All
a
c
d
e
m
p
s
t
v
Macros
a
c
d
e
m
p
s
t
v
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
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 <cstddef>
9
10
#include "
cppgc/internal/compiler-specific.h
"
11
12
namespace
cppgc
{
13
14
// Use CPPGC_STACK_ALLOCATED if the object is only stack allocated.
15
// Add the CPPGC_STACK_ALLOCATED_IGNORE annotation on a case-by-case basis when
16
// enforcement of CPPGC_STACK_ALLOCATED should be suppressed.
17
#if defined(__clang__)
18
#define CPPGC_STACK_ALLOCATED() \
19
public: \
20
using IsStackAllocatedTypeMarker CPPGC_UNUSED = int; \
21
\
22
private: \
23
void* operator new(size_t) = delete; \
24
void* operator new(size_t, void*) = delete; \
25
static_assert(true, "Force semicolon."
)
26
#define CPPGC_STACK_ALLOCATED_IGNORE(bug_or_reason) \
27
__attribute__((annotate("stack_allocated_ignore"
)))
28
#else
// !defined(__clang__)
29
#define CPPGC_STACK_ALLOCATED() static_assert(true, "Force semicolon."
)
30
#define CPPGC_STACK_ALLOCATED_IGNORE(bug_or_reason)
31
#endif
// !defined(__clang__)
32
33
}
// namespace cppgc
34
35
#endif
// INCLUDE_CPPGC_MACROS_H_
compiler-specific.h
cppgc
Definition
allocation.h:38
include
cppgc
macros.h
Generated on Thu Jul 11 2024 21:30:42 for v8 by
1.9.7