summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/nimbase.h7
-rw-r--r--lib/system/excpt.nim2
2 files changed, 1 insertions, 8 deletions
diff --git a/lib/nimbase.h b/lib/nimbase.h
index 69699a2a4..a03407c4f 100644
--- a/lib/nimbase.h
+++ b/lib/nimbase.h
@@ -274,13 +274,6 @@ __clang__
 #  endif
 #  define NIM_BOOL bool
 #  define NIM_NIL 0
-struct NimException
-{
-  NimException(struct Exception* exp, const char* msg): exp(exp), msg(msg) {}
-
-  struct Exception* exp;
-  const char* msg;
-};
 #else
 #  ifdef bool
 #    define NIM_BOOL bool
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):