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

Function pb_typebyname

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

Source from the content-addressed store, hash-verified

650}
651
652PB_API int pb_typebyname(const char *name, int def) {
653 static struct entry { const char *name; int value; } names[] = {
654#define X(name,type,fmt) { #name, PB_T##name },
655 PB_TYPES(X)
656#undef X
657 { NULL, 0 }
658 };
659 struct entry *p;
660 for (p = names; p->name != NULL; ++p)
661 if (strcmp(p->name, name) == 0)

Callers 1

Lpb_typefmtFunction · 0.85

Calls 1

XClass · 0.85

Tested by

no test coverage detected