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

Function lua_dup

library/include/LuaWrapper.h:116–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114 constexpr auto UPVAL_ITEM_COUNT = lua_upvalueindex(6);
115
116 inline void lua_dup(lua_State *state) { lua_pushvalue(state, -1); }
117 inline void lua_swap(lua_State *state) { lua_insert(state, -2); }
118
119 /**

Callers 15

MakeMethod · 0.85
OpenMethod · 0.85
meta_struct_nextFunction · 0.85
meta_union_nextFunction · 0.85
meta_fieldinfo_nextFunction · 0.85
MakeContainerMetatableFunction · 0.85
OpenPersistentFunction · 0.85
OpenMatinfoFunction · 0.85
get_pen_mirrorFunction · 0.85
OpenPenFunction · 0.85
OpenPenArrayFunction · 0.85
OpenRandomFunction · 0.85

Calls 1

lua_pushvalueFunction · 0.85

Tested by

no test coverage detected