Files
Petteri Aimonen e942f15bd3 Enable comments generation by default and add test case (#85, #645)
Comments from .proto file are now included automatically when .proto
file is passed directly to nanopb_generator.py, and also when using
protoc --nanopb_out=. When using --descriptor_out=, --include_source_info
will need to be added to protoc command line.

Added a simple test case for the comment generation.
2021-03-10 09:15:34 +02:00

9 lines
169 B
Python

# Test comment inclusion from .proto to .pb.h
Import("env")
env.NanopbProto("comments")
env.Object("comments.pb.c")
env.Match(['comments.pb.h', 'comments.expected'])