-d:nimDebug: calls doAssert false instead of quit (#17739)
This commit is contained in:
parent
5c5f356347
commit
5c9c1988f6
9 changed files with 20 additions and 14 deletions
|
|
@ -398,7 +398,8 @@ proc log*(s: string) =
|
|||
close(f)
|
||||
|
||||
proc quit(conf: ConfigRef; msg: TMsgKind) {.gcsafe.} =
|
||||
if defined(debug) or msg == errInternal or conf.hasHint(hintStackTrace):
|
||||
if conf.isDefined("nimDebug"): quitOrRaise(conf, $msg)
|
||||
elif defined(debug) or msg == errInternal or conf.hasHint(hintStackTrace):
|
||||
{.gcsafe.}:
|
||||
if stackTraceAvailable() and isNil(conf.writelnHook):
|
||||
writeStackTrace()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue