Merge pull request #4331 from endragor/no-cpp-exceptions-rethrow
Fixed rethrowing not to generate C++ throw with noCppExceptions switch
This commit is contained in:
commit
5e8646583d
1 changed files with 1 additions and 1 deletions
|
|
@ -570,7 +570,7 @@ proc genRaiseStmt(p: BProc, t: PNode) =
|
|||
else:
|
||||
genLineDir(p, t)
|
||||
# reraise the last exception:
|
||||
if p.module.compileToCpp:
|
||||
if p.module.compileToCpp and optNoCppExceptions notin gGlobalOptions:
|
||||
line(p, cpsStmts, ~"throw;$n")
|
||||
else:
|
||||
linefmt(p, cpsStmts, "#reraiseException();$n")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue