MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / lua_xmove

Function lua_xmove

other_src/lua/src/lapi.cpp:111–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 6

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

Calls

no outgoing calls

Tested by

no test coverage detected