iamandi / nanopb

Automatically exported from code.google.com/p/nanopb
zlib License
0 stars 0 forks source link

Option to skip generating message #121

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Add possibility to indicate that one does not want to generate code for a 
particular message and rather skip it.

Something like the following will do:

[(nanopb) skip]
message MyMessage {
    required string name = 1;
    repeated int32 ids = 4;
}

or in the options file:

MyMessage skip

Original issue reported on code.google.com by rusn...@gmail.com on 5 Jun 2014 at 8:53

GoogleCodeExporter commented 9 years ago
Hmm, yeah, maybe the entire message could be skipped if type:FT_IGNORE is set 
on it. Currently that would skip all the fields and generate an empty message.

Original comment by Petteri.Aimonen on 6 Jun 2014 at 5:12

GoogleCodeExporter commented 9 years ago
Considering issue 125, it makes more sense to have it as a separate option 
called 'skip_message'.

Original comment by Petteri.Aimonen on 20 Jul 2014 at 11:47

GoogleCodeExporter commented 9 years ago
This issue was updated by revision 1d7f60fec306.

Original comment by Petteri.Aimonen on 20 Jul 2014 at 11:57

GoogleCodeExporter commented 9 years ago
Fix released in nanopb 0.2.9.

Original comment by Petteri.Aimonen on 9 Aug 2014 at 7:28