parent
1bcc352137
commit
1efd11e266
1 changed files with 1 additions and 1 deletions
|
|
@ -244,7 +244,7 @@ proc safeLineNm(info: TLineInfo): int =
|
|||
|
||||
proc genCLineDir(r: var Rope, filename: string, line: int; conf: ConfigRef) =
|
||||
assert line >= 0
|
||||
if optLineDir in conf.options:
|
||||
if optLineDir in conf.options and line > 0:
|
||||
r.addf("$N#line $2 $1$N",
|
||||
[rope(makeSingleLineCString(filename)), rope(line)])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue