** Reverse the stack segment from 'from' to 'to' ** (auxiliary to 'lua_rotate') */
| 191 | ** (auxiliary to 'lua_rotate') |
| 192 | */ |
| 193 | static void reverse (lua_State *L, StkId from, StkId to) { |
| 194 | for (; from < to; from++, to--) { |
| 195 | TValue temp; |
| 196 | setobj(L, &temp, from); |
| 197 | setobjs2s(L, from, to); |
| 198 | setobj2s(L, to, &temp); |
| 199 | } |
| 200 | } |
| 201 | |
| 202 | |
| 203 | /* |