use abort instead of quit (#10872)

This commit is contained in:
Arne Döring 2019-03-21 06:52:30 +01:00 • committed by Andreas Rumpf
commit 514674cb38
2 changed files with 9 additions and 5 deletions

View file

@ -29,8 +29,7 @@ const
nativeStackTraceSupported = false
hasSomeStackTrace = false
proc quitOrDebug() {.inline.} =
quit(1)
proc quitOrDebug() {.noreturn, importc: "abort", header: "<stdlib.h>", nodecl.}
proc raiseException(e: ref Exception, ename: cstring) {.compilerRtl.} =
sysFatal(ReraiseError, "exception handling is not available")