getAst works correctly with existing AST values as template/macro arguments

This commit is contained in:
Zahary Karadjov 2011-10-03 16:57:30 +03:00
commit eaeed1f846
5 changed files with 125 additions and 59 deletions

View file

@ -206,7 +206,7 @@ proc evalOp(m: TMagic, n, a, b, c: PNode): PNode =
of mNewString, mNewStringOfCap,
mExit, mInc, ast.mDec, mEcho, mAssert, mSwap, mAppendStrCh,
mAppendStrStr, mAppendSeqElem, mSetLengthStr, mSetLengthSeq,
mParseExprToAst, mParseStmtToAst,
mParseExprToAst, mParseStmtToAst, mExpandMacroToAst,
mNLen..mNError, mEqRef:
nil
else: InternalError(a.info, "evalOp(" & $m & ')')