Implement NOTE: We cannot define a macro or function called raise, as in Nim, raise, a keyword, will be parsed as part of nnkRaiseStmt.
Procs
proc rewriteRaise(rStmt: NimNode): NimNode {....raises: [], tags: [], forbids: [].}
-
Rewrites raise ErrType/ErrType()/ErrType(msg) to raise newException(ErrType, msg/"")
assume rStmt is nnkRaiseStmt
Source Edit