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
|
bind instantiationInfo
|
||||||
mixin failedAssertImpl
|
mixin failedAssertImpl
|
||||||
when enabled:
|
when enabled:
|
||||||
# for stacktrace; fixes #8928 ; Note: `fullPaths = true` is correct
|
{.line: instantiationInfo(fullPaths = compileOption("excessiveStackTrace")).}:
|
||||||
# here, regardless of --excessiveStackTrace
|
|
||||||
{.line: instantiationInfo(fullPaths = true).}:
|
|
||||||
if not cond:
|
if not cond:
|
||||||
failedAssertImpl(loc & " `" & expr & "` " & msg)
|
failedAssertImpl(loc & " `" & expr & "` " & msg)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue