| 1957 | |
| 1958 | |
| 1959 | LUA_API void lua_xmove (lua_State *from, lua_State *to, int n) { |
| 1960 | int i; |
| 1961 | if (from == to) return; |
| 1962 | lua_lock(to); |
| 1963 | api_checknelems(from, n); |
| 1964 | api_check(from, G(from) == G(to)); |
| 1965 | api_check(from, to->ci->top - to->top >= n); |
| 1966 | from->top -= n; |
| 1967 | for (i = 0; i < n; i++) { |
| 1968 | setobj2s(to, to->top++, from->top + i); |
| 1969 | } |
| 1970 | lua_unlock(to); |
| 1971 | } |
| 1972 | |
| 1973 | |
| 1974 | LUA_API void lua_setlevel (lua_State *from, lua_State *to) { |
no outgoing calls
no test coverage detected