** Reverse the stack segment from 'from' to 'to' ** (auxiliary to 'lua_rotate') ** Note that we move(copy) only the value inside the stack. ** (We do not move additional fields that may exist.) */
| 219 | ** (We do not move additional fields that may exist.) |
| 220 | */ |
| 221 | static void reverse (lua_State *L, StkId from, StkId to) { |
| 222 | for (; from < to; from++, to--) { |
| 223 | TValue temp; |
| 224 | setobj(L, &temp, s2v(from)); |
| 225 | setobjs2s(L, from, to); |
| 226 | setobj2s(L, to, &temp); |
| 227 | } |
| 228 | } |
| 229 | |
| 230 | |
| 231 | /* |
no outgoing calls