Renamed DebugBreak to avoid collision and implemented in terms of __debugbreak() on Windows

This commit is contained in:
Phil Nash
2011-02-16 18:58:15 +00:00
parent 7d65a8c612
commit dea778138e
2 changed files with 10 additions and 10 deletions

View File

@@ -443,7 +443,7 @@ inline bool isTrue
#define INTERNAL_CATCH_ACCEPT_RESULT( result, stopOnFailure ) \
if( Catch::ResultAction::Value action = Catch::Hub::getResultCapture().acceptResult( result ) ) \
{ \
if( action == Catch::ResultAction::DebugFailed ) DebugBreak(); \
if( action == Catch::ResultAction::DebugFailed ) BreakIntoDebugger(); \
if( Catch::isTrue( stopOnFailure ) ) throw Catch::TestFailureException(); \
}