MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / luaB_next

Function luaB_next

Source/Misc/lua/src/lua.c:11090–11099  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11088
11089
11090static int luaB_next (lua_State *L) {
11091luaL_checktype(L, 1, LUA_TTABLE);
11092lua_settop(L, 2); /* create a 2nd argument if there isn't one */
11093if (lua_next(L, 1))
11094return 2;
11095else {
11096lua_pushnil(L);
11097return 1;
11098}
11099}
11100
11101
11102static 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