Added --noCppExceptions switch

This commit is contained in:
Ruslan Mustakov 2016-02-18 23:01:43 +06:00
commit 378c904131
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()