getAst works correctly with existing AST values as template/macro arguments
This commit is contained in:
parent
130316751d
commit
eaeed1f846
5 changed files with 125 additions and 59 deletions
|
|
@ -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 & ')')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue