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

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/interfaces
diff options
context:
space:
mode:
authorMartin Hořeňovský2025-09-23 11:01:27 +0200
committerMartin Hořeňovský2025-09-23 11:46:26 +0200
commit434bf55d4727ab1d1aef244ef16823a0ed1e6b4a (patch)
treee891786493ba589f694459bc85f246e5a6d3e862 /src/catch2/interfaces
parent9048c24fa7c6b568d52f76cbf06bbd62b7f83556 (diff)
downloadcatch3-434bf55d4727ab1d1aef244ef16823a0ed1e6b4a.tar.gz
Make message push/pop static
Since the change to make the message macros thread-safe, and thus thread-local, there is no need to handle messages through instance of `RunContext`.
Diffstat (limited to 'src/catch2/interfaces')
-rw-r--r--src/catch2/interfaces/catch_interfaces_capture.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/catch2/interfaces/catch_interfaces_capture.hpp b/src/catch2/interfaces/catch_interfaces_capture.hpp
index b4fee6cd..702ccb4d 100644
--- a/src/catch2/interfaces/catch_interfaces_capture.hpp
+++ b/src/catch2/interfaces/catch_interfaces_capture.hpp
@@ -62,10 +62,9 @@ namespace Catch {
virtual void benchmarkEnded( BenchmarkStats<> const& stats ) = 0;
virtual void benchmarkFailed( StringRef error ) = 0;
- virtual void pushScopedMessage( MessageInfo&& message ) = 0;
- virtual void popScopedMessage( unsigned int messageId ) = 0;
-
- virtual void emplaceUnscopedMessage( MessageBuilder&& builder ) = 0;
+ static void pushScopedMessage( MessageInfo&& message );
+ static void popScopedMessage( unsigned int messageId );
+ static void emplaceUnscopedMessage( MessageBuilder&& builder );
virtual void handleFatalErrorCondition( StringRef message ) = 0;
@@ -102,6 +101,7 @@ namespace Catch {
};
IResultCapture& getResultCapture();
+
}
#endif // CATCH_INTERFACES_CAPTURE_HPP_INCLUDED