Skip to content

Commit 8defea5

Browse files
committed
Comment cleanups
1 parent 18391cd commit 8defea5

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/catch2/internal/catch_run_context.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ namespace Catch {
166166
}
167167

168168
namespace Detail {
169+
// This is used only for CHECKED_IF/CHECKED_ELSE, and making
170+
// it thread-local fits that usage better than shared between threads.
169171
static thread_local bool g_lastAssertionPassed = false;
170172
}
171173

src/catch2/internal/catch_run_context.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ namespace Catch {
157157
FatalConditionHandler m_fatalConditionhandler;
158158
// Caches m_config->abortAfter() to avoid vptr calls/allow inlining
159159
size_t m_abortAfterXFailedAssertions;
160-
//bool m_lastAssertionPassed = false;
161160
bool m_shouldReportUnexpected = true;
162161
// Caches whether `assertionStarting` events should be sent to the reporter.
163162
bool m_reportAssertionStarting;

0 commit comments

Comments
 (0)