MCPcopy Create free account
hub / github.com/Tencent/UnLua / pb_type

Function pb_type

Plugins/UnLuaExtensions/LuaProtobuf/Source/src/pb.h:1144–1149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1142}
1143
1144PB_API const pb_Type *pb_type(const pb_State *S, const pb_Name *tname) {
1145 pb_TypeEntry *te = NULL;
1146 if (S != NULL && tname != NULL)
1147 te = (pb_TypeEntry*)pb_gettable(&S->types, (pb_Key)tname);
1148 return te && !te->value->is_dead ? te->value : NULL;
1149}
1150
1151PB_API const pb_Field *pb_fname(const pb_Type *t, const pb_Name *name) {
1152 pb_FieldEntry *fe = NULL;

Callers 1

lpb_typeFunction · 0.85

Calls 1

pb_gettableFunction · 0.85

Tested by

no test coverage detected