Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorPhil Nash2013-04-20 21:04:32 +0100
committerPhil Nash2013-04-20 21:04:32 +0100
commit2666c96d4e407c18fe6518007d403fe05327bcbc (patch)
tree39a82c8b8f146ca90a99726a167a2f07917f6c16 /include
parentb3acf45d7052efc97409db4ba2f930833cd15596 (diff)
downloadcatch3-2666c96d4e407c18fe6518007d403fe05327bcbc.tar.gz
Fixes issue #164
- Removed spurious (re-)throw when catching unexpected exception
Diffstat (limited to 'include')
-rw-r--r--include/internal/catch_capture.hpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/internal/catch_capture.hpp b/include/internal/catch_capture.hpp
index 4cc9705f..575f1931 100644
--- a/include/internal/catch_capture.hpp
+++ b/include/internal/catch_capture.hpp
@@ -88,7 +88,6 @@ inline bool isTrue( bool value ){ return value; }
} catch( ... ) { \
INTERNAL_CATCH_ACCEPT_EXPR( Catch::ExpressionResultBuilder( Catch::ResultWas::ThrewException ) << Catch::translateActiveException(), \
resultDisposition | Catch::ResultDisposition::ContinueOnFailure, expr ); \
- throw; \
} \
} while( Catch::isTrue( false ) )
@@ -179,7 +178,6 @@ inline bool isTrue( bool value ){ return value; }
} catch( ... ) { \
INTERNAL_CATCH_ACCEPT_EXPR( ( Catch::ExpressionResultBuilder( Catch::ResultWas::ThrewException ) << Catch::translateActiveException() ), \
resultDisposition | Catch::ResultDisposition::ContinueOnFailure, false ); \
- throw; \
} \
} while( Catch::isTrue( false ) )