Add new option max_length for strings (issue #107)
Max_size is the allocated size, so users had to add +1 for the null terminator. Max_length does the +1 automatically in the generator.
Showing
- generator/nanopb_generator.py 4 additions, 0 deletionsgenerator/nanopb_generator.py
- generator/proto/nanopb.proto 5 additions, 0 deletionsgenerator/proto/nanopb.proto
- tests/options/options.expected 1 addition, 0 deletionstests/options/options.expected
- tests/options/options.proto 1 addition, 0 deletionstests/options/options.proto
Loading
Please register or sign in to comment