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

Function Lpb_typesiter

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

Source from the content-addressed store, hash-verified

1254}
1255
1256static int Lpb_typesiter(lua_State *L) {
1257 lpb_State *LS = lpb_lstate(L);
1258 const pb_Type *t = lpb_type(LS, lpb_toslice(L, 2));
1259 if ((t == NULL && !lua_isnoneornil(L, 2)))
1260 return 0;
1261 pb_nexttype(lpbS_state(LS), &t);
1262 return lpb_pushtype(L, t);
1263}
1264
1265static int Lpb_types(lua_State *L) {
1266 lua_pushcfunction(L, Lpb_typesiter);

Callers

nothing calls this directly

Calls 5

lpb_lstateFunction · 0.85
lpb_typeFunction · 0.85
lpb_tosliceFunction · 0.85
pb_nexttypeFunction · 0.85
lpb_pushtypeFunction · 0.85

Tested by

no test coverage detected