attempt to make tests green again

This commit is contained in:
Araq 2012-03-11 01:46:37 +01:00
commit ec0f982ed4
5 changed files with 40 additions and 21 deletions

View file

@ -125,7 +125,7 @@ proc semMacroExpr(c: PContext, n: PNode, sym: PSym,
semCheck: bool = true): PNode =
markUsed(n, sym)
if c.evalContext == nil:
c.evalContext = newEvalContext(c.module, "", false)
c.evalContext = newEvalContext(c.module, "", emStatic)
result = evalMacroCall(c.evalContext, n, sym)
if semCheck: result = semAfterMacroCall(c, result, sym)