| 110 | |
| 111 | |
| 112 | LUA_API void lua_xmove (lua_State *from, lua_State *to, int n) { |
| 113 | int i; |
| 114 | if (from == to) return; |
| 115 | lua_lock(to); |
| 116 | api_checknelems(from, n); |
| 117 | api_check(from, G(from) == G(to), "moving among independent states"); |
| 118 | api_check(from, to->ci->top - to->top >= n, "not enough elements to move"); |
| 119 | from->top -= n; |
| 120 | for (i = 0; i < n; i++) { |
| 121 | setobj2s(to, to->top++, from->top + i); |
| 122 | } |
| 123 | lua_unlock(to); |
| 124 | } |
| 125 | |
| 126 | |
| 127 | LUA_API lua_CFunction lua_atpanic (lua_State *L, lua_CFunction panicf) { |
no outgoing calls
no test coverage detected