| 3110 | } |
| 3111 | |
| 3112 | static void compat53_reverse(lua_State *L, int a, int b) { |
| 3113 | for (; a < b; ++a, --b) { |
| 3114 | lua_pushvalue(L, a); |
| 3115 | lua_pushvalue(L, b); |
| 3116 | lua_replace(L, a); |
| 3117 | lua_replace(L, b); |
| 3118 | } |
| 3119 | } |
| 3120 | |
| 3121 | COMPAT53_API void lua_rotate(lua_State *L, int idx, int n) { |
| 3122 | int n_elems = 0; |
no test coverage detected