cpp enum class string idl 源码
cpp-enum-class-string-idl python3 -m cpp_enum_class_string_idl MyEnums.yaml MyEnums.yaml interfaces : - MyEnum.yaml - MyOtherEnum.yaml MyEnum.yaml name : MyEnum type : int values : - Value0 - Value1 MyEnum.h # pragma once /* * generated code from cpp-enum-class-string-idl */ enum class MyEnum : int { Value0, Value1, Count }; const char * enum_to_string ( const MyEnum v
用户评论