MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / lua_xmove

Function lua_xmove

3rd/lua-5.4.3/src/lapi.c:121–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 10

auxresumeFunction · 0.85
luaB_auxwrapFunction · 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

Calls

no outgoing calls

Tested by

no test coverage detected