| 108 | |
| 109 | |
| 110 | LUA_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 | |
| 125 | LUA_API void lua_setlevel (lua_State *from, lua_State *to) { |
no outgoing calls
no test coverage detected