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

Function lua_xmove

third-party/lua-5.5.0/src/lapi.c:126–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124
125
126LUA_API void lua_xmove (lua_State *from, lua_State *to, int n) {
127 int i;
128 if (from == to) return;
129 lua_lock(to);
130 api_checkpop(from, n);
131 api_check(from, G(from) == G(to), "moving among independent states");
132 api_check(from, to->ci->top.p - to->top.p >= n, "stack overflow");
133 from->top.p -= n;
134 for (i = 0; i < n; i++) {
135 setobjs2s(to, to->top.p, from->top.p + i);
136 to->top.p++; /* stack already checked by previous 'api_check' */
137 }
138 lua_unlock(to);
139}
140
141
142LUA_API lua_CFunction lua_atpanic (lua_State *L, lua_CFunction panicf) {

Callers 10

auxresumeFunction · 0.70
luaB_auxwrapFunction · 0.70
luaB_cocreateFunction · 0.70
luaB_closeFunction · 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