assertions: make assert follow excessiveStackTrace (#11574)
This commit is contained in:
parent
e9a23cee0a
commit
403fd3ac43
1 changed files with 1 additions and 3 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue