bugfix: optimization of complex constant string concatenations
This commit is contained in:
parent
88f9eff38f
commit
97366d4419
7 changed files with 43 additions and 16 deletions
|
|
@ -512,6 +512,10 @@ proc toFileLine*(info: TLineInfo): string {.inline.} =
|
|||
proc toFileLineCol*(info: TLineInfo): string {.inline.} =
|
||||
result = info.toFilename & "(" & $info.line & "," & $info.col & ")"
|
||||
|
||||
proc `??`* (info: TLineInfo, filename: string): bool =
|
||||
# only for debugging purposes
|
||||
result = filename in info.toFilename
|
||||
|
||||
var checkPoints: seq[TLineInfo] = @[]
|
||||
|
||||
proc addCheckpoint*(info: TLineInfo) =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue