This commit is contained in:
Araq 2016-12-18 20:21:50 +01:00
commit 91935fd915
5 changed files with 47 additions and 1 deletions

View file

@ -194,6 +194,8 @@ proc genLineDir(p: BProc, t: PNode) =
var tt = t
#while tt.kind in {nkStmtListExpr}+nkCallKinds:
# tt = tt.lastSon
if tt.kind in nkCallKinds and tt.len > 1:
tt = tt.sons[1]
let line = tt.info.safeLineNm
if optEmbedOrigSrc in gGlobalOptions: