[Yunq] Add ability to namespace declarations using "package".
This commit is contained in:
parent
9fdd670a23
commit
f1e09b2ae6
15 changed files with 153 additions and 10 deletions
|
|
@ -1,6 +1,9 @@
|
|||
// Generated file -- DO NOT MODIFY.
|
||||
#include "{{file}}.h"
|
||||
|
||||
{% if package != None %}
|
||||
namespace {{package.cpp_namespace()}} {
|
||||
{% endif %}
|
||||
namespace {
|
||||
|
||||
const uint64_t header_size = 24; // 4x uint32, 1x uint64
|
||||
|
|
@ -188,3 +191,7 @@ uint64_t {{message.name}}::SerializeToBytes(glcr::ByteBuffer& bytes, uint64_t of
|
|||
return next_extension;
|
||||
}
|
||||
{%- endfor %}
|
||||
|
||||
{% if package != None %}
|
||||
} // namepace {{package.cpp_namespace()}}
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue