diff options
| author | Martin Hořeňovský | 2020-04-29 14:02:53 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-04-29 14:02:53 +0200 |
| commit | 783ab5ef87ec5eb5664389b629e5e501a62e35e7 (patch) | |
| tree | 5a83718dac0f8c0c8f39b4dee15d7aca80375ac8 /src/catch2/internal | |
| parent | 8d50f044196c92d0b9cb3dcd9bc32fe96d768b99 (diff) | |
| download | catch3-783ab5ef87ec5eb5664389b629e5e501a62e35e7.tar.gz | |
Move around message macros and implementation
Diffstat (limited to 'src/catch2/internal')
| -rw-r--r-- | src/catch2/internal/catch_test_macro_impl.hpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/catch2/internal/catch_test_macro_impl.hpp b/src/catch2/internal/catch_test_macro_impl.hpp index 369076a7..862d6ff9 100644 --- a/src/catch2/internal/catch_test_macro_impl.hpp +++ b/src/catch2/internal/catch_test_macro_impl.hpp @@ -10,7 +10,6 @@ #include <catch2/internal/catch_assertionhandler.hpp> #include <catch2/interfaces/catch_interfaces_capture.hpp> -#include <catch2/catch_message.hpp> #include <catch2/catch_stringref.hpp> // We need this suppression to leak, because it took until GCC 9 @@ -120,26 +119,6 @@ } while( false ) -/////////////////////////////////////////////////////////////////////////////// -#define INTERNAL_CATCH_MSG( macroName, messageType, resultDisposition, ... ) \ - do { \ - Catch::AssertionHandler catchAssertionHandler( macroName##_catch_sr, CATCH_INTERNAL_LINEINFO, Catch::StringRef(), resultDisposition ); \ - catchAssertionHandler.handleMessage( messageType, ( Catch::MessageStream() << __VA_ARGS__ + ::Catch::StreamEndStop() ).m_stream.str() ); \ - INTERNAL_CATCH_REACT( catchAssertionHandler ) \ - } while( false ) - -/////////////////////////////////////////////////////////////////////////////// -#define INTERNAL_CATCH_CAPTURE( varName, macroName, ... ) \ - auto varName = Catch::Capturer( macroName, CATCH_INTERNAL_LINEINFO, Catch::ResultWas::Info, #__VA_ARGS__ ); \ - varName.captureValues( 0, __VA_ARGS__ ) - -/////////////////////////////////////////////////////////////////////////////// -#define INTERNAL_CATCH_INFO( macroName, log ) \ - Catch::ScopedMessage INTERNAL_CATCH_UNIQUE_NAME( scopedMessage )( Catch::MessageBuilder( macroName##_catch_sr, CATCH_INTERNAL_LINEINFO, Catch::ResultWas::Info ) << log ) - -/////////////////////////////////////////////////////////////////////////////// -#define INTERNAL_CATCH_UNSCOPED_INFO( macroName, log ) \ - Catch::getResultCapture().emplaceUnscopedMessage( Catch::MessageBuilder( macroName##_catch_sr, CATCH_INTERNAL_LINEINFO, Catch::ResultWas::Info ) << log ) /////////////////////////////////////////////////////////////////////////////// // Although this is matcher-based, it can be used with just a string |