nanopb-generator.py could generate a #define that would initialize a structure
to default values. For example:
#define Person_PhoneNumber_defaults {"", false, Person_PhoneType_HOME}
Person_PhoneNumber phone = Person_PhoneNumber_defaults;
Currently this is mostly achieved by = {}, but that initializes everything to
zero.
Original issue reported on code.google.com by Petteri.Aimonen on 16 Jul 2013 at 8:02
Original issue reported on code.google.com by
Petteri.Aimonen
on 16 Jul 2013 at 8:02