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

Function luaB_next

third-party/lua-5.4.6/src/lbaselib.c:267–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265
266
267static int luaB_next (lua_State *L) {
268 luaL_checktype(L, 1, LUA_TTABLE);
269 lua_settop(L, 2); /* create a 2nd argument if there isn't one */
270 if (lua_next(L, 1))
271 return 2;
272 else {
273 lua_pushnil(L);
274 return 1;
275 }
276}
277
278
279static 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