mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 18:02:05 +00:00
* system: fix nimGC_getStackBottom doc
* system/helpers: avoid leaking docs to system
(cherry picked from commit be0a4d1342)
12 lines
447 B
Nim
12 lines
447 B
Nim
# 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)
|