From d2c1604d6d239cdab6b21f3daf6634eb112ae318 Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Thu, 10 Jan 2013 17:32:27 +0200 Subject: 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 --- tests/options.proto | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/options.proto') 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; +} + -- cgit 1.2.3-korg