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
ff403547
Commit
ff403547
authored
Oct 27, 2014
by
Kenton Varda
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #135 from pqu/lite-fix
Fix `CAPNP_LITE` build
parents
3a4203b7
9bc9e6be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
generated-header-support.h
c++/src/capnp/generated-header-support.h
+6
-7
No files found.
c++/src/capnp/generated-header-support.h
View file @
ff403547
...
...
@@ -473,20 +473,19 @@ inline constexpr uint sizeInWords() {
#define CAPNP_DEFINE_ENUM(type, id) \
constexpr uint64_t EnumInfo<type>::typeId
#define CAPNP_DECLARE_STRUCT_HEADER(id, dataWordSize, pointerCount
, preferredElementEncoding
) \
#define CAPNP_DECLARE_STRUCT_HEADER(id, dataWordSize, pointerCount) \
struct _capnpPrivate { \
struct IsStruct; \
static constexpr uint64_t typeId = 0x##id; \
static constexpr ::capnp::_::StructSize structSize = ::capnp::_::StructSize( \
dataWordSize * ::capnp::WORDS, pointerCount * ::capnp::POINTERS, \
::capnp::_::FieldSize::preferredElementEncoding); \
dataWordSize * ::capnp::WORDS, pointerCount * ::capnp::POINTERS); \
static inline ::capnp::word const* encodedSchema() { return ::capnp::schemas::bp_##id; }
#define CAPNP_DECLARE_STRUCT(id, dataWordSize, pointerCount
, preferredElementEncoding
) \
CAPNP_DECLARE_STRUCT_HEADER(id, dataWordSize, pointerCount
, preferredElementEncoding
) \
#define CAPNP_DECLARE_STRUCT(id, dataWordSize, pointerCount) \
CAPNP_DECLARE_STRUCT_HEADER(id, dataWordSize, pointerCount) \
}
#define CAPNP_DECLARE_TEMPLATE_STRUCT(id, dataWordSize, pointerCount,
preferredElementEncoding,
\
#define CAPNP_DECLARE_TEMPLATE_STRUCT(id, dataWordSize, pointerCount, \
...) \
CAPNP_DECLARE_STRUCT_HEADER(id, dataWordSize, pointerCount
, preferredElementEncoding
) \
CAPNP_DECLARE_STRUCT_HEADER(id, dataWordSize, pointerCount) \
}
#define CAPNP_DEFINE_STRUCT(type, templates, id) \
templates constexpr uint64_t type::_capnpPrivate::typeId; \
...
...
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