Skip to content

Commit

Permalink
fix c++ catch missing ending brace
Browse files Browse the repository at this point in the history
  • Loading branch information
metagn committed Nov 7, 2024
1 parent ab6107d commit 4eb1ca5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/ccgstmts.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1193,6 +1193,7 @@ proc genTryCpp(p: BProc, t: PNode, d: var TLoc) =
p.s(cpsStmts).add("throw;\n")
if hasIf:
finishIfStmt(p.s(cpsStmts), ifStmt)
linefmt(p, cpsStmts, "}$n", [])

# Second pass: handle C++ based exceptions:
template genExceptBranchBody(body: PNode) {.dirty.} =
Expand Down

0 comments on commit 4eb1ca5

Please sign in to comment.