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

Function lpb_field

Plugins/UnLuaExtensions/LuaProtobuf/Source/src/pb.cpp:1185–1190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1183}
1184
1185static const pb_Field *lpb_field(lua_State *L, int idx, const pb_Type *t) {
1186 lpb_State *LS = lpb_lstate(L);
1187 int isint, number = (int)lua_tointegerx(L, idx, &isint);
1188 if (isint) return pb_field(t, number);
1189 return pb_fname(t, lpb_name(LS, lpb_checkslice(L, idx)));
1190}
1191
1192static int Lpb_load(lua_State *L) {
1193 lpb_State *LS = lpb_lstate(L);

Callers 3

Lpb_fieldFunction · 0.85
Lpb_enumFunction · 0.85
Lpb_clearFunction · 0.85

Calls 5

lpb_lstateFunction · 0.85
pb_fieldFunction · 0.85
pb_fnameFunction · 0.85
lpb_checksliceFunction · 0.85
lua_tointegerxFunction · 0.70

Tested by

no test coverage detected