You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
/* 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;
|
|
}
|
|
|