fix confusing line information for macros that produce errors

This commit is contained in:
Araq
2017-02-01 00:00:41 +01:00
parent 16260b23c7
commit e88a0af494

View File

@@ -1615,6 +1615,7 @@ proc evalMacroCall*(module: PSym; cache: IdentCache, n, nOrig: PNode,
setupGlobalCtx(module, cache)
var c = globalCtx
c.comesFromHeuristic.line = -1
c.callsite = nOrig
let start = genProc(c, sym)