diff options
| author | Phil Nash | 2017-08-08 19:43:07 +0100 |
|---|---|---|
| committer | Phil Nash | 2017-08-08 19:43:07 +0100 |
| commit | 8a97beece21ac02ba71b03fe33f5ccaba36ff4c0 (patch) | |
| tree | 3b496a1f6eac98f478fcfdb41c0457e0eaa183dd /include/internal/catch_assertionhandler.cpp | |
| parent | f033f4f1842cb3859b97855261d3119488783b20 (diff) | |
| download | catch3-8a97beece21ac02ba71b03fe33f5ccaba36ff4c0.tar.gz | |
integrated AssertionHandler into INTERNAL_CATCH_THROWS_AS
Diffstat (limited to 'include/internal/catch_assertionhandler.cpp')
| -rw-r--r-- | include/internal/catch_assertionhandler.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/internal/catch_assertionhandler.cpp b/include/internal/catch_assertionhandler.cpp index 1b7e1346..fe8e32a0 100644 --- a/include/internal/catch_assertionhandler.cpp +++ b/include/internal/catch_assertionhandler.cpp @@ -90,6 +90,9 @@ namespace Catch { void AssertionHandler::handle( ResultWas::OfType resultType ) { handle( resultType, nullptr, false ); } + auto AssertionHandler::allowThrows() const -> bool { + return getCurrentContext().getConfig()->allowThrows(); + } auto AssertionHandler::shouldDebugBreak() const -> bool { return m_shouldDebugBreak; |