preparations of making compiler/msgs.nim free of global variables
This commit is contained in:
parent
2a7fc84c86
commit
bf6c2c5ccf
38 changed files with 179 additions and 183 deletions
|
|
@ -148,7 +148,7 @@ proc makeInstPair*(s: PSym, inst: PInstantiation): TInstantiationPair =
|
|||
|
||||
proc filename*(c: PContext): string =
|
||||
# the module's filename
|
||||
return toFilename(FileIndex c.module.position)
|
||||
return toFilename(c.config, FileIndex c.module.position)
|
||||
|
||||
proc scopeDepth*(c: PContext): int {.inline.} =
|
||||
result = if c.currentScope != nil: c.currentScope.depthLevel
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue