Merge pull request #3881 from endragor/nocppexceptions

Added --noCppExceptions switch
This commit is contained in:
Andreas Rumpf 2016-02-19 00:33:47 +01:00
commit 12b5c0985d
6 changed files with 18 additions and 3 deletions

View file

@ -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()