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
This commit is contained in:
Petteri Aimonen
2013-01-10 17:32:27 +02:00
parent 93ffe14a0a
commit d2c1604d6d
5 changed files with 31 additions and 6 deletions

View File

@@ -4,3 +4,4 @@ char fieldsize\[40\];
pb_callback_t int32_callback;
\sEnumValue1 = 1
Message5_EnumValue1
} pb_packed my_packed_struct;