MCPcopy Create free account
hub / github.com/DFHack/dfhack / wtype_pnext

Function wtype_pnext

library/LuaWrapper.cpp:1336–1343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1334 */
1335
1336static int wtype_pnext(lua_State *L)
1337{
1338 lua_settop(L, 2); /* create a 2nd argument if there isn't one */
1339 if (lua_next(L, lua_upvalueindex(1)))
1340 return 2;
1341 lua_pushnil(L);
1342 return 1;
1343}
1344
1345static int wtype_pairs(lua_State *state)
1346{

Callers

nothing calls this directly

Calls 3

lua_settopFunction · 0.85
lua_nextFunction · 0.85
lua_pushnilFunction · 0.85

Tested by

no test coverage detected