diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-02-18 15:23:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-18 15:23:05 +0100 |
commit | 2deb1e354fb7eba063c125579af04911f14382ed (patch) | |
tree | d27830529923022bd975fac7b23a606b7d1fcb28 /lib/system | |
parent | 1d66222901f0812bf5ffd5fc4e8175acb1948c9e (diff) | |
download | Nim-2deb1e354fb7eba063c125579af04911f14382ed.tar.gz |
fixes #10702 (#10705)
* --define:nimQuirky exception handling for Nim; in preparation of a blog post * make it work with latest system.nim * make code more readable * fixes #10702
Diffstat (limited to 'lib/system')
-rw-r--r-- | lib/system/excpt.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/system/excpt.nim b/lib/system/excpt.nim index dbdd038a4..93fd693e0 100644 --- a/lib/system/excpt.nim +++ b/lib/system/excpt.nim @@ -354,6 +354,8 @@ proc raiseExceptionAux(e: ref Exception) = raiseCounter.inc # skip zero at overflow e.raiseId = raiseCounter {.emit: "`e`->raise();".} + elif defined(nimQuirky): + pushCurrentException(e) else: if excHandler != nil: if not excHandler.hasRaiseAction or excHandler.raiseAction(e): |