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

summaryrefslogtreecommitdiffhomepage
path: root/include/internal
diff options
context:
space:
mode:
authorPhil Nash2017-11-23 16:58:43 +0000
committerPhil Nash2017-11-23 16:58:43 +0000
commit8141a7836fb22d1c19f738549e404263c5639f6c (patch)
treef685573b114df648067d9b803a0350566c5c0fa2 /include/internal
parent5323202652d061a0d1ae1cb631316d76b6c68de9 (diff)
downloadcatch3-8141a7836fb22d1c19f738549e404263c5639f6c.tar.gz
Inline shouldDebugBreak()
Diffstat (limited to 'include/internal')
-rw-r--r--include/internal/catch_assertionhandler.cpp3
-rw-r--r--include/internal/catch_assertionhandler.h3
2 files changed, 2 insertions, 4 deletions
diff --git a/include/internal/catch_assertionhandler.cpp b/include/internal/catch_assertionhandler.cpp
index 60f97617..8aa7573d 100644
--- a/include/internal/catch_assertionhandler.cpp
+++ b/include/internal/catch_assertionhandler.cpp
@@ -116,9 +116,6 @@ namespace Catch {
return getCurrentContext().getConfig()->allowThrows();
}
- auto AssertionHandler::shouldDebugBreak() const -> bool {
- return m_shouldDebugBreak;
- }
void AssertionHandler::reactWithDebugBreak() const {
if (m_shouldDebugBreak) {
///////////////////////////////////////////////////////////////////
diff --git a/include/internal/catch_assertionhandler.h b/include/internal/catch_assertionhandler.h
index a800af5c..7903cefe 100644
--- a/include/internal/catch_assertionhandler.h
+++ b/include/internal/catch_assertionhandler.h
@@ -57,7 +57,8 @@ namespace Catch {
void handle( ResultWas::OfType resultType, ITransientExpression const* expr, bool negated );
void handle( AssertionResultData const& resultData, ITransientExpression const* expr );
- auto shouldDebugBreak() const -> bool;
+ auto shouldDebugBreak() const -> bool { return m_shouldDebugBreak; }
+
auto allowThrows() const -> bool;
void reactWithDebugBreak() const;
void reactWithoutDebugBreak() const;