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
d80ee5e4
Commit
d80ee5e4
authored
Apr 03, 2015
by
joshuawarner32@gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deinline KJ_STRINGIFY StructEqualityResult
parent
341eac28
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
any.c++
c++/src/capnp/any.c++
+11
-0
any.h
c++/src/capnp/any.h
+1
-10
No files found.
c++/src/capnp/any.c++
View file @
d80ee5e4
...
...
@@ -122,6 +122,17 @@ StructEqualityResult equal(AnyStruct::Reader left, AnyStruct::Reader right) {
}
kj
::
StringPtr
KJ_STRINGIFY
(
StructEqualityResult
res
)
{
switch
(
res
)
{
case
StructEqualityResult
:
:
NOT_EQUAL
:
return
"NOT_EQUAL"
;
case
StructEqualityResult
:
:
EQUAL
:
return
"EQUAL"
;
case
StructEqualityResult
:
:
UNKNOWN_CONTAINS_CAPS
:
return
"UNKNOWN_CONTAINS_CAPS"
;
}
}
StructEqualityResult
equal
(
AnyList
::
Reader
left
,
AnyList
::
Reader
right
)
{
if
(
left
.
size
()
!=
right
.
size
())
{
return
StructEqualityResult
::
NOT_EQUAL
;
...
...
c++/src/capnp/any.h
View file @
d80ee5e4
...
...
@@ -812,16 +812,7 @@ enum class StructEqualityResult {
UNKNOWN_CONTAINS_CAPS
};
inline
kj
::
StringPtr
KJ_STRINGIFY
(
StructEqualityResult
res
)
{
switch
(
res
)
{
case
StructEqualityResult
:
:
NOT_EQUAL
:
return
"NOT_EQUAL"
;
case
StructEqualityResult
:
:
EQUAL
:
return
"EQUAL"
;
case
StructEqualityResult
:
:
UNKNOWN_CONTAINS_CAPS
:
return
"UNKNOWN_CONTAINS_CAPS"
;
}
}
kj
::
StringPtr
KJ_STRINGIFY
(
StructEqualityResult
res
);
StructEqualityResult
equal
(
AnyStruct
::
Reader
left
,
AnyStruct
::
Reader
right
);
StructEqualityResult
equal
(
List
<
AnyStruct
>::
Reader
left
,
List
<
AnyStruct
>::
Reader
right
);
...
...
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