mirror of
https://github.com/nanopb/nanopb.git
synced 2026-06-06 20:18:31 +00:00
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.
9 lines
169 B
Python
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'])
|
|
|