mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2026-01-06 08:39:03 +03:00
add nanopb (manual)
This commit is contained in:
@@ -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'])
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
Enum1Comment
|
||||
LeadingEnumComment
|
||||
ENUMVAL2.*TrailingEnumComment
|
||||
Message1Comment
|
||||
member2.*TrailingMemberComment
|
||||
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user