MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaB_next

Function luaB_next

third-party/lua-5.5.0/src/lbaselib.c:268–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266
267
268static int luaB_next (lua_State *L) {
269 luaL_checktype(L, 1, LUA_TTABLE);
270 lua_settop(L, 2); /* create a 2nd argument if there isn't one */
271 if (lua_next(L, 1))
272 return 2;
273 else {
274 lua_pushnil(L);
275 return 1;
276 }
277}
278
279
280static int pairscont (lua_State *L, int status, lua_KContext k) {

Callers

nothing calls this directly

Calls 4

luaL_checktypeFunction · 0.70
lua_settopFunction · 0.70
lua_nextFunction · 0.70
lua_pushnilFunction · 0.70

Tested by

no test coverage detected