Fix C++ compilation error in excpt.nim (#17951)
This commit is contained in:
parent
39e0a5322a
commit
9b126de65c
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue