diff options
| author | Martin Hořeňovský | 2025-09-23 11:01:27 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2025-09-23 11:46:26 +0200 |
| commit | 434bf55d4727ab1d1aef244ef16823a0ed1e6b4a (patch) | |
| tree | e891786493ba589f694459bc85f246e5a6d3e862 /src/catch2/interfaces | |
| parent | 9048c24fa7c6b568d52f76cbf06bbd62b7f83556 (diff) | |
| download | catch3-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.hpp | 8 |
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 |