This commit is contained in:
Andreas Rumpf
2017-07-13 04:43:53 +02:00
parent ec9de2e3cd
commit ebba9f06ae
3 changed files with 17 additions and 6 deletions

View File

@@ -73,12 +73,11 @@ proc popSafePoint {.compilerRtl, inl.} =
excHandler = excHandler.prev
proc pushCurrentException(e: ref Exception) {.compilerRtl, inl.} =
#if e.parent.isNil:
# e.parent = currException
e.up = currException
currException = e
proc popCurrentException {.compilerRtl, inl.} =
currException = nil # currException.parent
currException = currException.up
# some platforms have native support for stack traces:
const