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

Function lua_xmove

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

Source from the content-addressed store, hash-verified

110
111
112LUA_API void lua_xmove (lua_State *from, lua_State *to, int n) {
113 int i;
114 if (from == to) return;
115 lua_lock(to);
116 api_checknelems(from, n);
117 api_check(from, G(from) == G(to), "moving among independent states");
118 api_check(from, to->ci->top - to->top >= n, "not enough elements to move");
119 from->top -= n;
120 for (i = 0; i < n; i++) {
121 setobj2s(to, to->top++, from->top + i);
122 }
123 lua_unlock(to);
124}
125
126
127LUA_API lua_CFunction lua_atpanic (lua_State *L, lua_CFunction panicf) {

Callers 8

auxresumeFunction · 0.70
luaB_cocreateFunction · 0.70
treatstackoptionFunction · 0.70
db_getinfoFunction · 0.70
db_getlocalFunction · 0.70
db_setlocalFunction · 0.70
db_sethookFunction · 0.70
db_gethookFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected