From 32e25cbca210a359b09768537b6f443fe90a3070 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Tue, 20 Jun 2017 10:24:05 +0000 Subject: Separation Generator to a dedicated repo Change-Id: Id94831651c3266861435272a6e36c7884bef2c45 Signed-off-by: Romain Forlot --- libs/nanopb/tests/enum_to_string/enum.proto | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 libs/nanopb/tests/enum_to_string/enum.proto (limited to 'libs/nanopb/tests/enum_to_string/enum.proto') diff --git a/libs/nanopb/tests/enum_to_string/enum.proto b/libs/nanopb/tests/enum_to_string/enum.proto new file mode 100644 index 0000000..07c6736 --- /dev/null +++ b/libs/nanopb/tests/enum_to_string/enum.proto @@ -0,0 +1,19 @@ +/* Test enum to string function generation */ + +syntax = "proto2"; + +import "nanopb.proto"; + +option (nanopb_fileopt).enum_to_string = true; + +enum MyEnum { + VALUE1 = 1; + VALUE2 = 2; + VALUE15 = 15; +} + +enum MyShortNameEnum { + option (nanopb_enumopt).long_names = false; + MSNE_VALUE256 = 256; +} + -- cgit 1.2.3-korg