mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-10 15:04:59 +00:00
progress
This commit is contained in:
@@ -597,6 +597,8 @@ proc callDepthLimitReached() {.noinline.} =
|
||||
showErrorMessage2(msg)
|
||||
rawQuit(1)
|
||||
|
||||
{.push overflowChecks: off.}
|
||||
|
||||
proc nimFrame(s: PFrame) {.compilerRtl, inl, raises: [].} =
|
||||
if framePtr == nil:
|
||||
s.calldepth = 0
|
||||
@@ -608,6 +610,8 @@ proc nimFrame(s: PFrame) {.compilerRtl, inl, raises: [].} =
|
||||
framePtr = s
|
||||
if s.calldepth == nimCallDepthLimit: callDepthLimitReached()
|
||||
|
||||
{.pop.}
|
||||
|
||||
when defined(cpp) and appType != "lib" and not gotoBasedExceptions and
|
||||
not defined(js) and not defined(nimscript) and
|
||||
hostOS != "standalone" and hostOS != "any" and not defined(noCppExceptions) and
|
||||
@@ -634,7 +638,7 @@ when defined(cpp) and appType != "lib" and not gotoBasedExceptions and
|
||||
msg = currException.getStackTrace() & "Error: unhandled exception: " &
|
||||
currException.msg & " [" & cstrToStrBuiltin(currException.name) & "]"
|
||||
except StdException as e:
|
||||
msg = "Error: unhandled cpp exception: " & $e.what()
|
||||
msg = "Error: unhandled cpp exception: " & cstrToStrBuiltin(e.what())
|
||||
except:
|
||||
msg = "Error: unhandled unknown cpp exception"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user