Merge pull request #3881 from endragor/nocppexceptions
Added --noCppExceptions switch
This commit is contained in:
commit
12b5c0985d
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