| 117 | |
| 118 | |
| 119 | LUA_API void lua_xmove (lua_State *from, lua_State *to, int n) { |
| 120 | int i; |
| 121 | if (from == to) return; |
| 122 | lua_lock(to); |
| 123 | api_checknelems(from, n); |
| 124 | api_check(from, G(from) == G(to), "moving among independent states"); |
| 125 | api_check(from, to->ci->top - to->top >= n, "stack overflow"); |
| 126 | from->top -= n; |
| 127 | for (i = 0; i < n; i++) { |
| 128 | setobjs2s(to, to->top, from->top + i); |
| 129 | to->top++; /* stack already checked by previous 'api_check' */ |
| 130 | } |
| 131 | lua_unlock(to); |
| 132 | } |
| 133 | |
| 134 | |
| 135 | LUA_API lua_CFunction lua_atpanic (lua_State *L, lua_CFunction panicf) { |
no outgoing calls
no test coverage detected