(other *LState, n int)
| 2010 | } |
| 2011 | |
| 2012 | func (ls *LState) XMoveTo(other *LState, n int) { |
| 2013 | if ls == other { |
| 2014 | return |
| 2015 | } |
| 2016 | top := ls.GetTop() |
| 2017 | n = intMin(n, top) |
| 2018 | for i := n; i > 0; i-- { |
| 2019 | other.Push(ls.Get(top - i + 1)) |
| 2020 | } |
| 2021 | ls.SetTop(top - n) |
| 2022 | } |
| 2023 | |
| 2024 | /* }}} */ |
| 2025 |