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
e7d27780
Commit
e7d27780
authored
Oct 31, 2013
by
Kenton Varda
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/kentonv/capnproto
parents
ad1c644a
c33b8908
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
arena.h
c++/src/capnp/arena.h
+1
-1
dynamic.h
c++/src/capnp/dynamic.h
+5
-0
common.c++
c++/src/kj/common.c++
+1
-1
No files found.
c++/src/capnp/arena.h
View file @
e7d27780
...
...
@@ -189,7 +189,7 @@ public:
virtual
void
reportReadLimitReached
()
=
0
;
// Called to report that the read limit has been reached. See ReadLimiter, below. This invokes
// the VALIDATE_INPUT() macro which may throw an exception; if it return normally, the caller
// the VALIDATE_INPUT() macro which may throw an exception; if it return
s
normally, the caller
// will need to continue with default values.
virtual
kj
::
Own
<
const
ClientHook
>
extractCap
(
const
_
::
StructReader
&
capDescriptor
)
=
0
;
...
...
c++/src/capnp/dynamic.h
View file @
e7d27780
...
...
@@ -739,6 +739,7 @@ class DynamicValue::Pipeline {
public
:
typedef
DynamicValue
Pipelines
;
inline
Pipeline
(
decltype
(
nullptr
)
n
=
nullptr
);
inline
Pipeline
(
DynamicStruct
::
Pipeline
&&
value
);
inline
Pipeline
(
DynamicCapability
::
Client
&&
value
);
...
...
@@ -749,6 +750,9 @@ public:
template
<
typename
T
>
inline
PipelineFor
<
T
>
releaseAs
()
{
return
AsImpl
<
T
>::
apply
(
*
this
);
}
inline
Type
getType
()
{
return
type
;
}
// Get the type of this value.
private
:
Type
type
;
union
{
...
...
@@ -1366,6 +1370,7 @@ struct DynamicValue::Builder::AsImpl<T, Kind::INTERFACE> {
}
};
inline
DynamicValue
::
Pipeline
::
Pipeline
(
std
::
nullptr_t
n
)
:
type
(
UNKNOWN
)
{}
inline
DynamicValue
::
Pipeline
::
Pipeline
(
DynamicStruct
::
Pipeline
&&
value
)
:
type
(
STRUCT
),
structValue
(
kj
::
mv
(
value
))
{}
inline
DynamicValue
::
Pipeline
::
Pipeline
(
DynamicCapability
::
Client
&&
value
)
...
...
c++/src/kj/common.c++
View file @
e7d27780
...
...
@@ -51,7 +51,7 @@ void inlineAssertFailure(const char* file, int line, const char* expectation,
}
void
unreachable
()
{
KJ_FAIL_ASSERT
(
"Suppose
n
dly-unreachable branch executed."
);
KJ_FAIL_ASSERT
(
"Supposedly-unreachable branch executed."
);
// Really make sure we abort.
abort
();
...
...
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