} foo_bar_Foo; 对应生成的.pb.c //添加packages前PB_BIND(Open, Open, AUTO) PB_BIND(Foo, Foo, AUTO) //添加packages后PB_BIND(foo_bar_Open, foo_bar_Open, AUTO) PB_BIND(foo_bar_Foo, foo_bar_Foo, AUTO) 使用不同的语言,包标识的生成的代码有所差异: 在c++中,生成的类包装在c++ namespa...
This is a c++ project, but the project is configured to build .c files with the c compiler. I've confirmed that the c compiler is being used by placing a check at the top of the .pb.c file to emit a warning if __cplusplus is set. The full build string, stripping out a million...
9 + PB_BIND(Config, Config, AUTO) 10 + 11 11 12 + PB_BIND(Instance, Instance, AUTO) 12 13 13 - const pb_field_t Config_fields[4] = { 14 - PB_FIELD( 1, UINT64 , SINGULAR, STATIC , FIRST, Config, version, version, 0), 15 - PB_FIELD( 2, STRING , SINGULAR, ...
in .proto options. */ /* #define PB_NO_PACKEDSTRUCTS 1 */ /*Increase the number of required fields that are tracked. * A warning will tell if you need this*/ /* #define PB_MAX_REQUIRED_FIELDS 256 */ /* Add support