예제 #1
0
 /*
 ** Reverse the stack segment from 'from' to 'to'
 ** (auxiliary to 'lua_rotate')
 */
 private static void reverse(lua_State L, StkId from, StkId to)
 {
     for (; from < to; TValue.inc(ref from), TValue.dec(ref to))
     {
         TValue temp = new TValue();
         setobj(L, temp, from);
         setobjs2s(L, from, to);
         setobj2s(L, to, temp);
     }
 }