Yield in try

This commit is contained in:
Yuriy Glukhov 2018-05-04 15:23:47 +03:00
commit ce63490928
6 changed files with 711 additions and 93 deletions

View file

@ -131,6 +131,10 @@ proc popCurrentExceptionEx(id: uint) {.compilerRtl.} =
quitOrDebug()
prev.up = cur.up
proc closureIterSetupExc(e: ref Exception) {.compilerproc, inline.} =
if not e.isNil:
currException = e
# some platforms have native support for stack traces:
const
nativeStackTraceSupported* = (defined(macosx) or defined(linux)) and