Added --noCppExceptions switch
This commit is contained in:
parent
2dd324632d
commit
378c904131
6 changed files with 18 additions and 3 deletions
|
|
@ -216,7 +216,7 @@ proc raiseExceptionAux(e: ref Exception) =
|
|||
if not localRaiseHook(e): return
|
||||
if globalRaiseHook != nil:
|
||||
if not globalRaiseHook(e): return
|
||||
when defined(cpp):
|
||||
when defined(cpp) and not defined(noCppExceptions):
|
||||
if e[] of OutOfMemError:
|
||||
showErrorMessage(e.name)
|
||||
quitOrDebug()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue