summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDanil Yarantsev <tiberiumk12@gmail.com>2021-05-06 23:33:57 +0300
committerGitHub <noreply@github.com>2021-05-06 22:33:57 +0200
commit9b126de65cdb6c8b59e0eb58763ca2878f456e0d (patch)
tree58ac28004c47bf343326ada1bbdabe9259194fd4
parent39e0a5322a7555a80e583895fc729b7390d71db4 (diff)
downloadNim-9b126de65cdb6c8b59e0eb58763ca2878f456e0d.tar.gz
Fix C++ compilation error in excpt.nim (#17951)
-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 8ba3a1601..5b7d4d49f 100644
--- a/lib/system/excpt.nim
+++ b/lib/system/excpt.nim
@@ -444,7 +444,7 @@ proc raiseExceptionAux(e: sink(ref Exception)) {.nodestroy.} =
       {.emit: "throw;".}
     else:
       pushCurrentException(e)
-      {.emit: "throw e;".}
+      {.emit: "throw `e`;".}
   elif defined(nimQuirky) or gotoBasedExceptions:
     # XXX This check should likely also be done in the setjmp case below.
     if e != currException: