コード例 #1
0
ファイル: CQ_Content.cs プロジェクト: liuruoyu1981/CQuark
 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();
        }