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

Function pen_pnext

library/LuaApi.cpp:823–830  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

821}
822
823static int pen_pnext(lua_State *L)
824{
825 lua_settop(L, 2); /* create a 2nd argument if there isn't one */
826 if (lua_next(L, lua_upvalueindex(1)))
827 return 2;
828 lua_pushnil(L);
829 return 1;
830}
831
832static int dfhack_pen_pairs(lua_State *L)
833{

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