diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2013-01-10 17:32:27 +0200 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2013-01-10 17:32:27 +0200 |
commit | d2c1604d6d239cdab6b21f3daf6634eb112ae318 (patch) | |
tree | b17e5aabb6d06f1cf7780ffb856016e86c7d3a67 /tests/options.proto | |
parent | 93ffe14a0ae32eeda8275f48106e76ecc650168d (diff) |
Add generator option for packed structs.
Usage is:
message Foo
{
option (nanopb_msgopt).packed_struct = true;
...
}
Valid also in file scope.
Update issue 49
Status: FixedInGit
Diffstat (limited to 'tests/options.proto')
-rw-r--r-- | tests/options.proto | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/options.proto b/tests/options.proto index 413d21b5..3e9383cd 100644 --- a/tests/options.proto +++ b/tests/options.proto @@ -54,3 +54,11 @@ message Message5 } required Enum2 field = 1 [default = EnumValue1]; } + +// Packed structure +message my_packed_struct +{ + option (nanopb_msgopt).packed_struct = true; + optional int32 myfield = 1; +} + |