MCPcopy Create free account
hub / github.com/F-Stack/f-stack / luaB_next

Function luaB_next

freebsd/contrib/openzfs/module/lua/lbaselib.c:195–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193
194
195static int luaB_next (lua_State *L) {
196 luaL_checktype(L, 1, LUA_TTABLE);
197 lua_settop(L, 2); /* create a 2nd argument if there isn't one */
198 if (lua_next(L, 1))
199 return 2;
200 else {
201 lua_pushnil(L);
202 return 1;
203 }
204}
205
206
207static 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