summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorcooldome <cdome@bk.ru>2018-02-12 20:23:34 +0000
committerAndreas Rumpf <rumpf_a@web.de>2018-02-12 21:23:34 +0100
commitd24b6667c6f74b61ea697bf91ce454f297ddac91 (patch)
tree85fed4537dfe34647f4a4800ccea14461ea92857 /lib/system
parent7cbab49645541af01dbd5afac98df637b02a0c0a (diff)
downloadNim-d24b6667c6f74b61ea697bf91ce454f297ddac91.tar.gz
genTryCpp to catch by Nim type, ready for first review (#7196)
* Rewrite genTryCpp

* correction

* Implement polymorphic raise in cpp

* revert backticks in emit

* Cleanp a comment

* revert test changes

* better handling of <new> header
Diffstat (limited to 'lib/system')
-rw-r--r--lib/system/excpt.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/excpt.nim b/lib/system/excpt.nim
index 3d75a8704..476582af2 100644
--- a/lib/system/excpt.nim
+++ b/lib/system/excpt.nim
@@ -320,7 +320,7 @@ proc raiseExceptionAux(e: ref Exception) =
       quitOrDebug()
     else:
       pushCurrentException(e)
-      {.emit: "throw NimException(`e`, `e`->name);".}
+      {.emit: "`e`->raise();".}
   else:
     if excHandler != nil:
       if not excHandler.hasRaiseAction or excHandler.raiseAction(e):