(other *LState, n int)
| 2223 | } |
| 2224 | |
| 2225 | func (ls *LState) XMoveTo(other *LState, n int) { |
| 2226 | if ls == other { |
| 2227 | return |
| 2228 | } |
| 2229 | top := ls.GetTop() |
| 2230 | n = intMin(n, top) |
| 2231 | for i := n; i > 0; i-- { |
| 2232 | other.Push(ls.Get(top - i + 1)) |
| 2233 | } |
| 2234 | ls.SetTop(top - n) |
| 2235 | } |
| 2236 | |
| 2237 | /* }}} */ |
| 2238 |
no test coverage detected