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:
@@ -25,6 +25,9 @@ message NanoPBOptions {
|
||||
|
||||
// Use long names for enums, i.e. EnumName_EnumValue.
|
||||
optional bool long_names = 4 [default = true];
|
||||
|
||||
// Add 'packed' attribute to generated structs.
|
||||
optional bool packed_struct = 5 [default = false];
|
||||
}
|
||||
|
||||
// Protocol Buffers extension number registry
|
||||
|
||||
Reference in New Issue
Block a user