MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / lua_xmove

Function lua_xmove

extlibs/lua/src/lapi.c:119–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117
118
119LUA_API void lua_xmove (lua_State *from, lua_State *to, int n) {
120 int i;
121 if (from == to) return;
122 lua_lock(to);
123 api_checknelems(from, n);
124 api_check(from, G(from) == G(to), "moving among independent states");
125 api_check(from, to->ci->top - to->top >= n, "stack overflow");
126 from->top -= n;
127 for (i = 0; i < n; i++) {
128 setobjs2s(to, to->top, from->top + i);
129 to->top++; /* stack already checked by previous 'api_check' */
130 }
131 lua_unlock(to);
132}
133
134
135LUA_API lua_CFunction lua_atpanic (lua_State *L, lua_CFunction panicf) {

Callers 12

auxresumeFunction · 0.85
luaB_cocreateFunction · 0.85
luaB_closeFunction · 0.85
treatstackoptionFunction · 0.85
db_getinfoFunction · 0.85
db_getlocalFunction · 0.85
db_setlocalFunction · 0.85
db_sethookFunction · 0.85
db_gethookFunction · 0.85
stack_referenceMethod · 0.85
pushMethod · 0.85
pushMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected