| 3042 | } |
| 3043 | |
| 3044 | static void compat53_reverse(lua_State *L, int a, int b) { |
| 3045 | for (; a < b; ++a, --b) { |
| 3046 | lua_pushvalue(L, a); |
| 3047 | lua_pushvalue(L, b); |
| 3048 | lua_replace(L, a); |
| 3049 | lua_replace(L, b); |
| 3050 | } |
| 3051 | } |
| 3052 | |
| 3053 | COMPAT53_API void lua_rotate(lua_State *L, int idx, int n) { |
| 3054 | int n_elems = 0; |