MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / luaB_pairs

Function luaB_pairs

deps/lua/src/lbaselib.c:238–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236
237
238static int luaB_pairs (lua_State *L) {
239 luaL_checktype(L, 1, LUA_TTABLE);
240 lua_pushvalue(L, lua_upvalueindex(1)); /* return generator, */
241 lua_pushvalue(L, 1); /* state, */
242 lua_pushnil(L); /* and initial value */
243 return 3;
244}
245
246
247static int ipairsaux (lua_State *L) {

Callers

nothing calls this directly

Calls 3

luaL_checktypeFunction · 0.85
lua_pushvalueFunction · 0.85
lua_pushnilFunction · 0.85

Tested by

no test coverage detected