This commit is contained in:
Timothee Cour 2018-09-10 13:21:32 -07:00
commit b5f463c3f6

View file

@ -3783,6 +3783,9 @@ template assertImpl(cond: bool, msg = "", enabled: static[bool]) =
bind instantiationInfo bind instantiationInfo
mixin failedAssertImpl mixin failedAssertImpl
when enabled: when enabled:
# for stacktrace; fixes #8928 ; Note: `fullPaths = true` is correct
# here, regardless of --excessiveStackTrace
{.line: instantiationInfo(fullPaths = true).}:
if not cond: if not cond:
failedAssertImpl(loc & " `" & astToStr(cond) & "` " & msg) failedAssertImpl(loc & " `" & astToStr(cond) & "` " & msg)