| 3635 | } |
| 3636 | |
| 3637 | static void compat53_reverse(lua_State* L, int a, int b) { |
| 3638 | for (; a < b; ++a, --b) { |
| 3639 | lua_pushvalue(L, a); |
| 3640 | lua_pushvalue(L, b); |
| 3641 | lua_replace(L, a); |
| 3642 | lua_replace(L, b); |
| 3643 | } |
| 3644 | } |
| 3645 | |
| 3646 | COMPAT53_API void lua_rotate(lua_State* L, int idx, int n) { |
| 3647 | int n_elems = 0; |