MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / lua_xmove

Function lua_xmove

deps/lua/src/lapi.c:110–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108
109
110LUA_API void lua_xmove (lua_State *from, lua_State *to, int n) {
111 int i;
112 if (from == to) return;
113 lua_lock(to);
114 api_checknelems(from, n);
115 api_check(from, G(from) == G(to));
116 api_check(from, to->ci->top - to->top >= n);
117 from->top -= n;
118 for (i = 0; i < n; i++) {
119 setobj2s(to, to->top++, from->top + i);
120 }
121 lua_unlock(to);
122}
123
124
125LUA_API void lua_setlevel (lua_State *from, lua_State *to) {

Callers 6

auxresumeFunction · 0.85
luaB_cocreateFunction · 0.85
treatstackoptionFunction · 0.85
db_getinfoFunction · 0.85
db_getlocalFunction · 0.85
db_setlocalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected