blob: fb1218684c17c4452ac0b3443613baf33e4339f7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
## helpers used system.nim and other modules, avoids code duplication while
## also minimizing symbols exposed in system.nim
#
# TODO: move other things here that should not be exposed in system.nim
proc lineInfoToString(file: string, line, column: int): string =
file & "(" & $line & ", " & $column & ")"
proc `$`(info: type(instantiationInfo(0))): string =
# The +1 is needed here
lineInfoToString(info.fileName, info.line, info.column+1)
|