fixes #488
This commit is contained in:
parent
ed56b8c173
commit
8d4f5038d0
2 changed files with 10 additions and 0 deletions
|
|
@ -1290,6 +1290,7 @@ proc newAnonSym(kind: TSymKind, info: TLineInfo,
|
|||
proc semExpandToAst(c: PContext, n: PNode): PNode =
|
||||
var macroCall = n[1]
|
||||
var expandedSym = expectMacroOrTemplateCall(c, macroCall)
|
||||
if expandedSym.kind == skError: return n
|
||||
|
||||
macroCall.sons[0] = newSymNode(expandedSym, macroCall.info)
|
||||
markUsed(n, expandedSym)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue