Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
fe18f08f
Commit
fe18f08f
authored
Aug 21, 2013
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove remaining schema transitional hacks.
parent
d5eba005
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
132 additions
and
117 deletions
+132
-117
compiler.c++
c++/src/capnp/compiler/compiler.c++
+10
-28
node-translator.c++
c++/src/capnp/compiler/node-translator.c++
+5
-13
parser.c++
c++/src/capnp/compiler/parser.c++
+6
-9
schema2.capnp
c++/src/capnp/schema2.capnp
+5
-4
schema2.capnp.c++
c++/src/capnp/schema2.capnp.c++
+58
-43
schema2.capnp.h
c++/src/capnp/schema2.capnp.h
+48
-20
No files found.
c++/src/capnp/compiler/compiler.c++
View file @
fe18f08f
...
...
@@ -904,36 +904,18 @@ Compiler::Impl::Impl(AnnotationFlag annotationFlag)
// Reflectively interpret the members of Declaration.body. Any member prefixed by "builtin"
// defines a builtin declaration visible in the global scope.
#warning "temporary hack for schema transition"
builtinDecls
[
"Void"
]
=
nodeArena
.
allocateOwn
<
Node
>
(
"Void"
,
Declaration
::
BUILTIN_VOID
);
builtinDecls
[
"Bool"
]
=
nodeArena
.
allocateOwn
<
Node
>
(
"Bool"
,
Declaration
::
BUILTIN_BOOL
);
builtinDecls
[
"Int8"
]
=
nodeArena
.
allocateOwn
<
Node
>
(
"Int8"
,
Declaration
::
BUILTIN_INT8
);
builtinDecls
[
"Int16"
]
=
nodeArena
.
allocateOwn
<
Node
>
(
"Int16"
,
Declaration
::
BUILTIN_INT16
);
builtinDecls
[
"Int32"
]
=
nodeArena
.
allocateOwn
<
Node
>
(
"Int32"
,
Declaration
::
BUILTIN_INT32
);
builtinDecls
[
"Int64"
]
=
nodeArena
.
allocateOwn
<
Node
>
(
"Int64"
,
Declaration
::
BUILTIN_INT64
);
builtinDecls
[
"UInt8"
]
=
nodeArena
.
allocateOwn
<
Node
>
(
"UInt8"
,
Declaration
::
BUILTIN_U_INT8
);
builtinDecls
[
"UInt16"
]
=
nodeArena
.
allocateOwn
<
Node
>
(
"UInt16"
,
Declaration
::
BUILTIN_U_INT16
);
builtinDecls
[
"UInt32"
]
=
nodeArena
.
allocateOwn
<
Node
>
(
"UInt32"
,
Declaration
::
BUILTIN_U_INT32
);
builtinDecls
[
"UInt64"
]
=
nodeArena
.
allocateOwn
<
Node
>
(
"UInt64"
,
Declaration
::
BUILTIN_U_INT64
);
builtinDecls
[
"Float32"
]
=
nodeArena
.
allocateOwn
<
Node
>
(
"Float32"
,
Declaration
::
BUILTIN_FLOAT32
);
builtinDecls
[
"Float64"
]
=
nodeArena
.
allocateOwn
<
Node
>
(
"Float64"
,
Declaration
::
BUILTIN_FLOAT64
);
builtinDecls
[
"Text"
]
=
nodeArena
.
allocateOwn
<
Node
>
(
"Text"
,
Declaration
::
BUILTIN_TEXT
);
builtinDecls
[
"Data"
]
=
nodeArena
.
allocateOwn
<
Node
>
(
"Data"
,
Declaration
::
BUILTIN_DATA
);
builtinDecls
[
"List"
]
=
nodeArena
.
allocateOwn
<
Node
>
(
"List"
,
Declaration
::
BUILTIN_LIST
);
builtinDecls
[
"Object"
]
=
nodeArena
.
allocateOwn
<
Node
>
(
"Object"
,
Declaration
::
BUILTIN_OBJECT
);
#if 0
StructSchema::Union declBodySchema =
Schema::from<Declaration>().getMemberByName("body").asUnion();
for (auto member: declBodySchema.getMembers()) {
auto name = member.getProto().getName();
if (name.startsWith("builtin")) {
kj::StringPtr symbolName = name.slice(strlen("builtin"));
builtinDecls[symbolName] = nodeArena.allocateOwn<Node>(
symbolName, static_cast<Declaration::Which>(member.getIndex()));
StructSchema
declSchema
=
Schema
::
from
<
Declaration
>
();
for
(
auto
field
:
declSchema
.
getFields
())
{
auto
fieldProto
=
field
.
getProto
();
if
(
fieldProto
.
hasDiscriminantValue
())
{
auto
name
=
fieldProto
.
getName
();
if
(
name
.
startsWith
(
"builtin"
))
{
kj
::
StringPtr
symbolName
=
name
.
slice
(
strlen
(
"builtin"
));
builtinDecls
[
symbolName
]
=
nodeArena
.
allocateOwn
<
Node
>
(
symbolName
,
static_cast
<
Declaration
::
Which
>
(
fieldProto
.
getDiscriminantValue
()));
}
}
}
#endif
}
Compiler
::
Impl
::~
Impl
()
noexcept
(
false
)
{}
...
...
c++/src/capnp/compiler/node-translator.c++
View file @
fe18f08f
...
...
@@ -704,21 +704,16 @@ void NodeTranslator::compileAnnotation(Declaration::Annotation::Reader decl,
schema2
::
Node
::
Annotation
::
Builder
builder
)
{
compileType
(
decl
.
getType
(),
builder
.
initType
());
#warning "temporary hack for schema transition"
builder
.
setTargetsFile
(
true
);
#if 0
// Dynamically copy over the values of all of the "targets" members.
DynamicStruct
::
Reader
src
=
decl
;
DynamicStruct
::
Builder
dst
=
builder
;
for (auto src
Member: src.getSchema().getMember
s()) {
kj::StringPtr
memberName = srcMember
.getProto().getName();
if (
member
Name.startsWith("targets")) {
auto dst
Member = dst.getSchema().getMemberByName(member
Name);
dst.set(dst
Member, src.get(srcMember
));
for
(
auto
src
Field
:
src
.
getSchema
().
getField
s
())
{
kj
::
StringPtr
fieldName
=
srcField
.
getProto
().
getName
();
if
(
field
Name
.
startsWith
(
"targets"
))
{
auto
dst
Field
=
dst
.
getSchema
().
getFieldByName
(
field
Name
);
dst
.
set
(
dst
Field
,
src
.
get
(
srcField
));
}
}
#endif
}
class
NodeTranslator
::
DuplicateOrdinalDetector
{
...
...
@@ -1812,13 +1807,10 @@ Orphan<List<schema2::Annotation>> NodeTranslator::compileAnnotationApplications(
annotationBuilder
.
setId
(
decl
->
id
);
KJ_IF_MAYBE
(
annotationSchema
,
resolver
.
resolveBootstrapSchema
(
decl
->
id
))
{
auto
node
=
annotationSchema
->
getProto
().
getAnnotation
();
#warning "temporary hack for schema transition"
#if 0
if
(
!
toDynamic
(
node
).
get
(
targetsFlagName
).
as
<
bool
>
())
{
errorReporter
.
addErrorOn
(
name
,
kj
::
str
(
"'"
,
declNameString
(
name
),
"' cannot be applied to this kind of declaration."
));
}
#endif
// Interpret the value.
auto
value
=
annotation
.
getValue
();
...
...
c++/src/capnp/compiler/parser.c++
View file @
fe18f08f
...
...
@@ -855,8 +855,6 @@ CapnpParser::CapnpParser(Orphanage orphanageParam, const ErrorReporter& errorRep
DynamicStruct
::
Builder
dynamicBuilder
=
builder
;
for
(
auto
&
maybeTarget
:
targets
.
value
)
{
KJ_IF_MAYBE
(
target
,
maybeTarget
)
{
#warning "temporary hack for schema transition"
#if 0
if
(
target
->
value
==
"*"
)
{
// Set all.
if
(
targets
.
value
.
size
()
>
1
)
{
...
...
@@ -864,9 +862,9 @@ CapnpParser::CapnpParser(Orphanage orphanageParam, const ErrorReporter& errorRep
"Wildcard should not be specified together with other targets."
);
}
for (auto
member: dynamicBuilder.getSchema().getMember
s()) {
if (
member
.getProto().getName().startsWith("targets")) {
dynamicBuilder.set(
member
, true);
for
(
auto
field
:
dynamicBuilder
.
getSchema
().
getField
s
())
{
if
(
field
.
getProto
().
getName
().
startsWith
(
"targets"
))
{
dynamicBuilder
.
set
(
field
,
true
);
}
}
}
else
{
...
...
@@ -879,19 +877,18 @@ CapnpParser::CapnpParser(Orphanage orphanageParam, const ErrorReporter& errorRep
strcpy
(
buffer
,
"targets"
);
strcat
(
buffer
,
target
->
value
.
cStr
());
buffer
[
strlen
(
"targets"
)]
+=
'A'
-
'a'
;
KJ_IF_MAYBE(
member, dynamicBuilder.getSchema().findMember
ByName(buffer)) {
if (dynamicBuilder.get(*
member
).as<bool>()) {
KJ_IF_MAYBE
(
field
,
dynamicBuilder
.
getSchema
().
findField
ByName
(
buffer
))
{
if
(
dynamicBuilder
.
get
(
*
field
).
as
<
bool
>
())
{
errorReporter
.
addError
(
target
->
startByte
,
target
->
endByte
,
"Duplicate target specification."
);
}
dynamicBuilder.set(*
member
, true);
dynamicBuilder
.
set
(
*
field
,
true
);
}
else
{
errorReporter
.
addError
(
target
->
startByte
,
target
->
endByte
,
"Not a valid annotation target."
);
}
}
}
#endif
}
}
return
DeclParserResult
(
kj
::
mv
(
decl
));
...
...
c++/src/capnp/schema2.capnp
View file @
fe18f08f
...
...
@@ -141,10 +141,11 @@ struct Node {
targetsStruct @23 :Bool;
targetsField @24 :Bool;
targetsUnion @25 :Bool;
targetsInterface @26 :Bool;
targetsMethod @27 :Bool;
targetsParam @28 :Bool;
targetsAnnotation @29 :Bool;
targetsGroup @26 :Bool;
targetsInterface @27 :Bool;
targetsMethod @28 :Bool;
targetsParam @29 :Bool;
targetsAnnotation @30 :Bool;
}
}
}
...
...
c++/src/capnp/schema2.capnp.c++
View file @
fe18f08f
...
...
@@ -465,7 +465,7 @@ const ::capnp::_::RawSchema s_b18aa5ac7a0d9420 = {
0xb18aa5ac7a0d9420
,
b_b18aa5ac7a0d9420
.
words
,
44
,
d_b18aa5ac7a0d9420
,
m_b18aa5ac7a0d9420
,
3
,
2
,
i_b18aa5ac7a0d9420
,
nullptr
,
nullptr
};
static
const
::
capnp
::
_
::
AlignedData
<
199
>
b_ec1619d4400a0290
=
{
static
const
::
capnp
::
_
::
AlignedData
<
214
>
b_ec1619d4400a0290
=
{
{
0
,
0
,
0
,
0
,
5
,
0
,
5
,
0
,
144
,
2
,
10
,
64
,
212
,
25
,
22
,
236
,
25
,
0
,
0
,
0
,
1
,
0
,
5
,
0
,
...
...
@@ -475,98 +475,105 @@ static const ::capnp::_::AlignedData<199> b_ec1619d4400a0290 = {
17
,
0
,
0
,
0
,
34
,
1
,
0
,
0
,
0
,
0
,
0
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,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
116
,
1
,
0
,
0
,
2
,
0
,
1
,
0
,
124
,
1
,
0
,
0
,
2
,
0
,
1
,
0
,
140
,
1
,
0
,
0
,
2
,
0
,
1
,
0
,
148
,
1
,
0
,
0
,
2
,
0
,
1
,
0
,
12
,
0
,
0
,
0
,
123
,
0
,
0
,
0
,
0
,
0
,
1
,
0
,
30
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
145
,
1
,
0
,
0
,
146
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
148
,
1
,
0
,
0
,
2
,
0
,
1
,
0
,
156
,
1
,
0
,
0
,
2
,
0
,
1
,
0
,
116
,
121
,
112
,
101
,
0
,
0
,
0
,
0
,
16
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
96
,
204
,
249
,
225
,
237
,
120
,
115
,
208
,
...
...
@@ -631,6 +638,14 @@ static const ::capnp::_::AlignedData<199> b_ec1619d4400a0290 = {
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
116
,
97
,
114
,
103
,
101
,
116
,
115
,
71
,
114
,
111
,
117
,
112
,
0
,
0
,
0
,
0
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
116
,
97
,
114
,
103
,
101
,
116
,
115
,
73
,
110
,
116
,
101
,
114
,
102
,
97
,
99
,
101
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
...
...
@@ -670,11 +685,11 @@ static const ::capnp::_::RawSchema* const d_ec1619d4400a0290[] = {
&
s_d07378ede1f9cc60
,
&
s_e682ab4cf923a417
,
};
static
const
uint16_t
m_ec1619d4400a0290
[]
=
{
1
1
,
2
,
3
,
4
,
6
,
1
,
8
,
9
,
10
,
5
,
7
,
0
};
static
const
uint16_t
i_ec1619d4400a0290
[]
=
{
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
};
static
const
uint16_t
m_ec1619d4400a0290
[]
=
{
1
2
,
2
,
3
,
4
,
6
,
1
,
8
,
9
,
10
,
11
,
5
,
7
,
0
};
static
const
uint16_t
i_ec1619d4400a0290
[]
=
{
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
,
12
};
const
::
capnp
::
_
::
RawSchema
s_ec1619d4400a0290
=
{
0xec1619d4400a0290
,
b_ec1619d4400a0290
.
words
,
199
,
d_ec1619d4400a0290
,
m_ec1619d4400a0290
,
2
,
1
2
,
i_ec1619d4400a0290
,
nullptr
,
nullptr
0xec1619d4400a0290
,
b_ec1619d4400a0290
.
words
,
214
,
d_ec1619d4400a0290
,
m_ec1619d4400a0290
,
2
,
1
3
,
i_ec1619d4400a0290
,
nullptr
,
nullptr
};
static
const
::
capnp
::
_
::
AlignedData
<
110
>
b_9aad50a41f4af45f
=
{
{
0
,
0
,
0
,
0
,
5
,
0
,
5
,
0
,
...
...
c++/src/capnp/schema2.capnp.h
View file @
fe18f08f
...
...
@@ -721,6 +721,9 @@ public:
inline
bool
hasTargetsUnion
()
const
;
inline
bool
getTargetsUnion
()
const
;
inline
bool
hasTargetsGroup
()
const
;
inline
bool
getTargetsGroup
()
const
;
inline
bool
hasTargetsInterface
()
const
;
inline
bool
getTargetsInterface
()
const
;
...
...
@@ -796,6 +799,10 @@ public:
inline
bool
getTargetsUnion
();
inline
void
setTargetsUnion
(
bool
value
);
inline
bool
hasTargetsGroup
();
inline
bool
getTargetsGroup
();
inline
void
setTargetsGroup
(
bool
value
);
inline
bool
hasTargetsInterface
();
inline
bool
getTargetsInterface
();
inline
void
setTargetsInterface
(
bool
value
);
...
...
@@ -2849,90 +2856,111 @@ inline void Node::Annotation::Builder::setTargetsUnion(bool value) {
118
*
::
capnp
::
ELEMENTS
,
value
);
}
inline
bool
Node
::
Annotation
::
Reader
::
hasTargets
Interface
()
const
{
inline
bool
Node
::
Annotation
::
Reader
::
hasTargets
Group
()
const
{
return
_reader
.
hasDataField
<
bool
>
(
119
*
::
capnp
::
ELEMENTS
);
}
inline
bool
Node
::
Annotation
::
Builder
::
hasTargets
Interface
()
{
inline
bool
Node
::
Annotation
::
Builder
::
hasTargets
Group
()
{
return
_builder
.
hasDataField
<
bool
>
(
119
*
::
capnp
::
ELEMENTS
);
}
inline
bool
Node
::
Annotation
::
Reader
::
getTargets
Interface
()
const
{
inline
bool
Node
::
Annotation
::
Reader
::
getTargets
Group
()
const
{
return
_reader
.
getDataField
<
bool
>
(
119
*
::
capnp
::
ELEMENTS
);
}
inline
bool
Node
::
Annotation
::
Builder
::
getTargets
Interface
()
{
inline
bool
Node
::
Annotation
::
Builder
::
getTargets
Group
()
{
return
_builder
.
getDataField
<
bool
>
(
119
*
::
capnp
::
ELEMENTS
);
}
inline
void
Node
::
Annotation
::
Builder
::
setTargets
Interface
(
bool
value
)
{
inline
void
Node
::
Annotation
::
Builder
::
setTargets
Group
(
bool
value
)
{
_builder
.
setDataField
<
bool
>
(
119
*
::
capnp
::
ELEMENTS
,
value
);
}
inline
bool
Node
::
Annotation
::
Reader
::
hasTargets
Method
()
const
{
inline
bool
Node
::
Annotation
::
Reader
::
hasTargets
Interface
()
const
{
return
_reader
.
hasDataField
<
bool
>
(
120
*
::
capnp
::
ELEMENTS
);
}
inline
bool
Node
::
Annotation
::
Builder
::
hasTargets
Method
()
{
inline
bool
Node
::
Annotation
::
Builder
::
hasTargets
Interface
()
{
return
_builder
.
hasDataField
<
bool
>
(
120
*
::
capnp
::
ELEMENTS
);
}
inline
bool
Node
::
Annotation
::
Reader
::
getTargets
Method
()
const
{
inline
bool
Node
::
Annotation
::
Reader
::
getTargets
Interface
()
const
{
return
_reader
.
getDataField
<
bool
>
(
120
*
::
capnp
::
ELEMENTS
);
}
inline
bool
Node
::
Annotation
::
Builder
::
getTargets
Method
()
{
inline
bool
Node
::
Annotation
::
Builder
::
getTargets
Interface
()
{
return
_builder
.
getDataField
<
bool
>
(
120
*
::
capnp
::
ELEMENTS
);
}
inline
void
Node
::
Annotation
::
Builder
::
setTargets
Method
(
bool
value
)
{
inline
void
Node
::
Annotation
::
Builder
::
setTargets
Interface
(
bool
value
)
{
_builder
.
setDataField
<
bool
>
(
120
*
::
capnp
::
ELEMENTS
,
value
);
}
inline
bool
Node
::
Annotation
::
Reader
::
hasTargets
Param
()
const
{
inline
bool
Node
::
Annotation
::
Reader
::
hasTargets
Method
()
const
{
return
_reader
.
hasDataField
<
bool
>
(
121
*
::
capnp
::
ELEMENTS
);
}
inline
bool
Node
::
Annotation
::
Builder
::
hasTargets
Param
()
{
inline
bool
Node
::
Annotation
::
Builder
::
hasTargets
Method
()
{
return
_builder
.
hasDataField
<
bool
>
(
121
*
::
capnp
::
ELEMENTS
);
}
inline
bool
Node
::
Annotation
::
Reader
::
getTargets
Param
()
const
{
inline
bool
Node
::
Annotation
::
Reader
::
getTargets
Method
()
const
{
return
_reader
.
getDataField
<
bool
>
(
121
*
::
capnp
::
ELEMENTS
);
}
inline
bool
Node
::
Annotation
::
Builder
::
getTargets
Param
()
{
inline
bool
Node
::
Annotation
::
Builder
::
getTargets
Method
()
{
return
_builder
.
getDataField
<
bool
>
(
121
*
::
capnp
::
ELEMENTS
);
}
inline
void
Node
::
Annotation
::
Builder
::
setTargets
Param
(
bool
value
)
{
inline
void
Node
::
Annotation
::
Builder
::
setTargets
Method
(
bool
value
)
{
_builder
.
setDataField
<
bool
>
(
121
*
::
capnp
::
ELEMENTS
,
value
);
}
inline
bool
Node
::
Annotation
::
Reader
::
hasTargets
Annotation
()
const
{
inline
bool
Node
::
Annotation
::
Reader
::
hasTargets
Param
()
const
{
return
_reader
.
hasDataField
<
bool
>
(
122
*
::
capnp
::
ELEMENTS
);
}
inline
bool
Node
::
Annotation
::
Builder
::
hasTargets
Annotation
()
{
inline
bool
Node
::
Annotation
::
Builder
::
hasTargets
Param
()
{
return
_builder
.
hasDataField
<
bool
>
(
122
*
::
capnp
::
ELEMENTS
);
}
inline
bool
Node
::
Annotation
::
Reader
::
getTargets
Annotation
()
const
{
inline
bool
Node
::
Annotation
::
Reader
::
getTargets
Param
()
const
{
return
_reader
.
getDataField
<
bool
>
(
122
*
::
capnp
::
ELEMENTS
);
}
inline
bool
Node
::
Annotation
::
Builder
::
getTargets
Annotation
()
{
inline
bool
Node
::
Annotation
::
Builder
::
getTargets
Param
()
{
return
_builder
.
getDataField
<
bool
>
(
122
*
::
capnp
::
ELEMENTS
);
}
inline
void
Node
::
Annotation
::
Builder
::
setTargets
Annotation
(
bool
value
)
{
inline
void
Node
::
Annotation
::
Builder
::
setTargets
Param
(
bool
value
)
{
_builder
.
setDataField
<
bool
>
(
122
*
::
capnp
::
ELEMENTS
,
value
);
}
inline
bool
Node
::
Annotation
::
Reader
::
hasTargetsAnnotation
()
const
{
return
_reader
.
hasDataField
<
bool
>
(
123
*
::
capnp
::
ELEMENTS
);
}
inline
bool
Node
::
Annotation
::
Builder
::
hasTargetsAnnotation
()
{
return
_builder
.
hasDataField
<
bool
>
(
123
*
::
capnp
::
ELEMENTS
);
}
inline
bool
Node
::
Annotation
::
Reader
::
getTargetsAnnotation
()
const
{
return
_reader
.
getDataField
<
bool
>
(
123
*
::
capnp
::
ELEMENTS
);
}
inline
bool
Node
::
Annotation
::
Builder
::
getTargetsAnnotation
()
{
return
_builder
.
getDataField
<
bool
>
(
123
*
::
capnp
::
ELEMENTS
);
}
inline
void
Node
::
Annotation
::
Builder
::
setTargetsAnnotation
(
bool
value
)
{
_builder
.
setDataField
<
bool
>
(
123
*
::
capnp
::
ELEMENTS
,
value
);
}
inline
Field
::
Which
Field
::
Reader
::
which
()
const
{
return
_reader
.
getDataField
<
Which
>
(
4
*
::
capnp
::
ELEMENTS
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment