Fix C++ compilation error in excpt.nim (#17951)

This commit is contained in:
Danil Yarantsev
2021-05-06 23:33:57 +03:00
committed by GitHub
parent 39e0a5322a
commit 9b126de65c

View File

@@ -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: