MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / luaB_pairs

Function luaB_pairs

lua/lbaselib.c:246–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244
245
246static int luaB_pairs (lua_State *L) {
247 luaL_checktype(L, 1, LUA_TTABLE);
248 lua_pushvalue(L, lua_upvalueindex(1)); /* return generator, */
249 lua_pushvalue(L, 1); /* state, */
250 lua_pushnil(L); /* and initial value */
251 return 3;
252}
253
254
255static 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