add nanopb (manual)

This commit is contained in:
Philippe G
2022-01-04 11:01:14 -08:00
parent 06b637c55b
commit 39f5a81238
554 changed files with 36793 additions and 3831 deletions

View File

@@ -0,0 +1,8 @@
# 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'])

View File

@@ -0,0 +1,6 @@
Enum1Comment
LeadingEnumComment
ENUMVAL2.*TrailingEnumComment
Message1Comment
member2.*TrailingMemberComment

View File

@@ -0,0 +1,17 @@
syntax = "proto2";
// Message1Comment
message Message1
{
// LeadingMemberComment
required int32 member1 = 1;
required int32 member2 = 2; // TrailingMemberComment
}
// Enum1Comment
enum Enum1
{
// LeadingEnumComment
ENUMVAL1 = 1;
ENUMVAL2 = 2; // TrailingEnumComment
}