fix confusing line information for macros that produce errors
This commit is contained in:
parent
16260b23c7
commit
e88a0af494
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue