experimental support for outputting code snippets in error messages; implements #301
see #301 for description. currently, the feature is activated by setting the verbosity level to 2 or more
This commit is contained in:
parent
95b28700cc
commit
e7581e7b9b
2 changed files with 21 additions and 0 deletions
|
|
@ -113,6 +113,12 @@ proc usesNativeGC*(): bool {.inline.} = gSelectedGC >= gcRefc
|
|||
template compilationCachePresent*: expr =
|
||||
{optCaasEnabled, optSymbolFiles} * gGlobalOptions != {}
|
||||
|
||||
template optPreserveOrigSource*: expr =
|
||||
optEmbedOrigSrc in gGlobalOptions
|
||||
|
||||
template optPrintSurroundingSrc*: expr =
|
||||
gVerbosity >= 2
|
||||
|
||||
const
|
||||
genSubDir* = "nimcache"
|
||||
NimExt* = "nim"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue