MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / luaB_next

Function luaB_next

extlibs/lua/src/lbaselib.c:251–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249
250
251static int luaB_next (lua_State *L) {
252 luaL_checktype(L, 1, LUA_TTABLE);
253 lua_settop(L, 2); /* create a 2nd argument if there isn't one */
254 if (lua_next(L, 1))
255 return 2;
256 else {
257 lua_pushnil(L);
258 return 1;
259 }
260}
261
262
263static int luaB_pairs (lua_State *L) {

Callers

nothing calls this directly

Calls 4

luaL_checktypeFunction · 0.85
lua_settopFunction · 0.85
lua_nextFunction · 0.85
lua_pushnilFunction · 0.85

Tested by

no test coverage detected