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
commit 9b126de65c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -444,7 +444,7 @@ proc raiseExceptionAux(e: sink(ref Exception)) {.nodestroy.} =
{.emit: "throw;".} {.emit: "throw;".}
else: else:
pushCurrentException(e) pushCurrentException(e)
{.emit: "throw e;".} {.emit: "throw `e`;".}
elif defined(nimQuirky) or gotoBasedExceptions: elif defined(nimQuirky) or gotoBasedExceptions:
# XXX This check should likely also be done in the setjmp case below. # XXX This check should likely also be done in the setjmp case below.
if e != currException: if e != currException: