** 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.) */
| 222 | ** (We do not move additional fields that may exist.) |
| 223 | */ |
| 224 | static void reverse (lua_State *L, StkId from, StkId to) { |
| 225 | for (; from < to; from++, to--) { |
| 226 | TValue temp; |
| 227 | setobj(L, &temp, s2v(from)); |
| 228 | setobjs2s(L, from, to); |
| 229 | setobj2s(L, to, &temp); |
| 230 | } |
| 231 | } |
| 232 | |
| 233 | |
| 234 | /* |
no outgoing calls
no test coverage detected