** 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.) */
| 198 | ** (We do not move additional fields that may exist.) |
| 199 | */ |
| 200 | static void reverse (lua_State *L, StkId from, StkId to) { |
| 201 | for (; from < to; from++, to--) { |
| 202 | TValue temp; |
| 203 | setobj(L, &temp, s2v(from)); |
| 204 | setobjs2s(L, from, to); |
| 205 | setobj2s(L, to, &temp); |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | |
| 210 | /* |
no outgoing calls
no test coverage detected