mirror of
https://github.com/catchorg/Catch2.git
synced 2025-02-17 03:43:29 +01:00
Fix compilation on non-OSX platforms
This commit is contained in:
parent
8c757cc542
commit
d7eb041ab5
@ -121,9 +121,9 @@ namespace Catch {
|
|||||||
#define CATCH_INTERNAL_LINEINFO \
|
#define CATCH_INTERNAL_LINEINFO \
|
||||||
::Catch::SourceLineInfo( __FILE__, static_cast<std::size_t>( __LINE__ ) )
|
::Catch::SourceLineInfo( __FILE__, static_cast<std::size_t>( __LINE__ ) )
|
||||||
#define CATCH_INTERNAL_ERROR( msg ) \
|
#define CATCH_INTERNAL_ERROR( msg ) \
|
||||||
throw std::logic_error( ( std::ostringstream() << CATCH_INTERNAL_LINEINFO << ": Internal Catch error: " << msg ).str() )
|
throw std::logic_error( static_cast<std::ostringstream&>( std::ostringstream() << CATCH_INTERNAL_LINEINFO << ": Internal Catch error: " << msg ).str() )
|
||||||
#define CATCH_ERROR( msg ) \
|
#define CATCH_ERROR( msg ) \
|
||||||
throw std::domain_error( ( std::ostringstream() << msg ).str() )
|
throw std::domain_error( static_cast<std::ostringstream&>( std::ostringstream() << msg ).str() )
|
||||||
#define CATCH_ENFORCE( condition, msg ) \
|
#define CATCH_ENFORCE( condition, msg ) \
|
||||||
do{ if( !(condition) ) CATCH_ERROR( msg ); } while(false)
|
do{ if( !(condition) ) CATCH_ERROR( msg ); } while(false)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user