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

Function luaB_next

third-party/lua-5.2.4/src/lbaselib.c:213–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211
212
213static int luaB_next (lua_State *L) {
214 luaL_checktype(L, 1, LUA_TTABLE);
215 lua_settop(L, 2); /* create a 2nd argument if there isn't one */
216 if (lua_next(L, 1))
217 return 2;
218 else {
219 lua_pushnil(L);
220 return 1;
221 }
222}
223
224
225static int luaB_pairs (lua_State *L) {

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