Added DYNAMIC_SECTION and implemented GIVEN/ WHEN/ THEN in terms of it

This commit is contained in:
Phil Nash
2018-06-25 19:19:21 +01:00
parent 1579744ddd
commit 5c0efa1cfc
3 changed files with 16 additions and 13 deletions

View File

@@ -38,4 +38,7 @@ namespace Catch {
#define INTERNAL_CATCH_SECTION( ... ) \
if( Catch::Section const& INTERNAL_CATCH_UNIQUE_NAME( catch_internal_Section ) = Catch::SectionInfo( CATCH_INTERNAL_LINEINFO, __VA_ARGS__ ) )
#define INTERNAL_CATCH_DYNAMIC_SECTION( ... ) \
if( Catch::Section const& INTERNAL_CATCH_UNIQUE_NAME( catch_internal_Section ) = Catch::SectionInfo( CATCH_INTERNAL_LINEINFO, (Catch::ReusableStringStream() << __VA_ARGS__).str() ) )
#endif // TWOBLUECUBES_CATCH_SECTION_H_INCLUDED