diff options
author | alaviss <alaviss@users.noreply.github.com> | 2019-06-25 05:23:22 +0700 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-06-25 00:23:22 +0200 |
commit | 403fd3ac43787c98c1d90df70977632b0a079e91 (patch) | |
tree | 3dc6fe63723040d0b3a89ab99357df2bd1a23651 /lib/system | |
parent | e9a23cee0ae1b6b33aa1e2abe0cb57572b6ccd6c (diff) | |
download | Nim-403fd3ac43787c98c1d90df70977632b0a079e91.tar.gz |
assertions: make assert follow excessiveStackTrace (#11574)
Diffstat (limited to 'lib/system')
-rw-r--r-- | lib/system/assertions.nim | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/system/assertions.nim b/lib/system/assertions.nim index ca22677b8..67f94aa1f 100644 --- a/lib/system/assertions.nim +++ b/lib/system/assertions.nim @@ -31,9 +31,7 @@ template assertImpl(cond: bool, msg: string, expr: string, enabled: static[bool] bind instantiationInfo mixin failedAssertImpl when enabled: - # for stacktrace; fixes #8928 ; Note: `fullPaths = true` is correct - # here, regardless of --excessiveStackTrace - {.line: instantiationInfo(fullPaths = true).}: + {.line: instantiationInfo(fullPaths = compileOption("excessiveStackTrace")).}: if not cond: failedAssertImpl(loc & " `" & expr & "` " & msg) |