예제 #1
0
 // Token: 0x06002162 RID: 8546 RVA: 0x000931F4 File Offset: 0x000921F4
 public static void Dup()
 {
     if (!StackEmulator.IsStackEmpty())
     {
         int value = StackEmulator.stack[StackEmulator.pointer];
         StackEmulator.PushValue(value);
     }
 }
예제 #2
0
        // Token: 0x06002163 RID: 8547 RVA: 0x00093228 File Offset: 0x00092228
        public static int PopValue()
        {
            int result;

            if (StackEmulator.IsStackEmpty())
            {
                result = -1;
            }
            else
            {
                int num = StackEmulator.stack[StackEmulator.pointer];
                StackEmulator.stack.RemoveAt(StackEmulator.pointer);
                StackEmulator.pointer--;
                result = num;
            }
            return(result);
        }