Пример #1
0
 public void OutStack(ICQ_Expression expr)
 {
     if (stackExpr.Peek() != expr)
     {
         throw new Exception("OutStack error:" + expr.ToString() + " err:" + stackExpr.Peek().ToString());
     }
     stackExpr.Pop();
 }
Пример #2
0
        public void OutStack(ICQ_Expression expr)
        {
            if (!useDebug)
            {
                return;
            }

            if (stackExpr.Peek() != expr)
            {
                if (expr.hasCoroutine)
                {
                    DepthRemove();
                }
                else
                {
                    throw new Exception("OutStack error:" + expr.ToString() + " err:" + stackExpr.Peek().ToString());
                }
            }
            stackExpr.Pop();
        }