diff options
author | Ruslan Mustakov <ruslan.mustakov@xored.com> | 2016-02-18 23:01:43 +0600 |
---|---|---|
committer | Ruslan Mustakov <ruslan.mustakov@xored.com> | 2016-02-18 23:01:43 +0600 |
commit | 378c904131f267fc9281f89b8df6ee0c2dcb008e (patch) | |
tree | bab97f89471a4c06f0ae00db10a0734ef2e6d974 /lib/system/excpt.nim | |
parent | 2dd324632d2c65f06a8581c01c1e1d1fd9731c38 (diff) | |
download | Nim-378c904131f267fc9281f89b8df6ee0c2dcb008e.tar.gz |
Added --noCppExceptions switch
Diffstat (limited to 'lib/system/excpt.nim')
-rw-r--r-- | lib/system/excpt.nim | 2 |
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() |