summary refs log tree commit diff stats
path: root/lib/system/excpt.nim
diff options
context:
space:
mode:
authorRuslan Mustakov <ruslan.mustakov@xored.com>2016-02-18 23:01:43 +0600
committerRuslan Mustakov <ruslan.mustakov@xored.com>2016-02-18 23:01:43 +0600
commit378c904131f267fc9281f89b8df6ee0c2dcb008e (patch)
treebab97f89471a4c06f0ae00db10a0734ef2e6d974 /lib/system/excpt.nim
parent2dd324632d2c65f06a8581c01c1e1d1fd9731c38 (diff)
downloadNim-378c904131f267fc9281f89b8df6ee0c2dcb008e.tar.gz
Added --noCppExceptions switch
Diffstat (limited to 'lib/system/excpt.nim')
-rw-r--r--lib/system/excpt.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/excpt.nim b/lib/system/excpt.nim
index df28c1493..8d1e04b8d 100644
--- a/lib/system/excpt.nim
+++ b/lib/system/excpt.nim
@@ -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()