MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / lua_copy

Function lua_copy

third-party/lua-5.2.4/src/lapi.c:226–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224
225
226LUA_API void lua_copy (lua_State *L, int fromidx, int toidx) {
227 TValue *fr;
228 lua_lock(L);
229 fr = index2addr(L, fromidx);
230 moveto(L, fr, toidx);
231 lua_unlock(L);
232}
233
234
235LUA_API void lua_pushvalue (lua_State *L, int idx) {

Callers 2

luaB_xpcallFunction · 0.70
pushglobalfuncnameFunction · 0.70

Calls 2

movetoFunction · 0.85
index2addrFunction · 0.70

Tested by

no test coverage detected