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:
Zahary Karadjov 2013-04-09 00:15:43 +03:00
commit e7581e7b9b
2 changed files with 21 additions and 0 deletions

View file

@ -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"