Nimrod can now compile itself with --lineDir enabled
This commit is contained in:
parent
daa2c8732d
commit
0f0dfd6379
7 changed files with 25 additions and 12 deletions
|
|
@ -438,6 +438,11 @@ proc newLineInfo*(filename: string, line, col: int): TLineInfo =
|
|||
proc ToFilename*(info: TLineInfo): string =
|
||||
if info.fileIndex < 0: result = "???"
|
||||
else: result = filenames[info.fileIndex]
|
||||
|
||||
proc toFullPath*(info: TLineInfo): string =
|
||||
result = info.toFilename
|
||||
if not isAbsolute(result):
|
||||
result = JoinPath(options.projectPath, result)
|
||||
|
||||
proc ToLinenumber*(info: TLineInfo): int {.inline.} =
|
||||
result = info.line
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue