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

Function get_pen_mirror

library/LuaApi.cpp:785–800  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

783}
784
785static void get_pen_mirror(lua_State *L, int idx)
786{
787 lua_getuservalue(L, idx);
788
789 if (lua_isnil(L, -1))
790 {
791 lua_pop(L, 1);
792
793 Pen pen;
794 Lua::CheckPen(L, &pen, idx, false, false);
795 make_pen_table(L, pen);
796
797 lua_dup(L);
798 lua_setuservalue(L, idx);
799 }
800}
801
802static int dfhack_pen_index(lua_State *L)
803{

Callers 2

dfhack_pen_indexFunction · 0.85
dfhack_pen_pairsFunction · 0.85

Calls 4

lua_getuservalueFunction · 0.85
make_pen_tableFunction · 0.85
lua_dupFunction · 0.85
lua_setuservalueFunction · 0.85

Tested by

no test coverage detected