diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2014-07-20 14:56:12 +0300 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2014-07-20 14:56:12 +0300 |
commit | 1d7f60fec30678ec7403786808026444a4b901e6 (patch) | |
tree | da0708de343e04dcf4d5644cc60c44b1b27220c1 /tests/options/options.proto | |
parent | 5749606f5d2f0a0c64cb6e021b7bd40b74ce45ee (diff) |
Add skip_message option to generator.
Update issue 121
Status: FixedInGit
Diffstat (limited to 'tests/options/options.proto')
-rw-r--r-- | tests/options/options.proto | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/options/options.proto b/tests/options/options.proto index b5badcfd..a8e557be 100644 --- a/tests/options/options.proto +++ b/tests/options/options.proto @@ -63,11 +63,15 @@ message my_packed_struct } // Message with ignored field -// Note: doesn't really test if the field is missing in the output, -// but atleast tests that the output compiles. message Message6 { required int32 field1 = 1; - optional int32 field2 = 2 [(nanopb).type = FT_IGNORE]; + optional int32 skipped_field = 2 [(nanopb).type = FT_IGNORE]; } +// Message that is skipped +message SkippedMessage +{ + option (nanopb_msgopt).skip_message = true; + required int32 foo = 1; +} |