debug stream fixes

This commit is contained in:
Phil Nash committed 2011-03-29 08:05:47 +01:00
1 parent 7a4b215dd3
commit 84b394ec45
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -137,8 +137,8 @@ namespace Catch
)
{
Config config;
if( isDebuggerActive() )
config.useStream( "debug" );
// if( isDebuggerActive() )
// config.useStream( "debug" );
return Main( argc, argv, config );
}
+1 -1
View File
@@ -92,7 +92,7 @@
#define BreakIntoDebugger() if (IsDebuggerPresent() ) { __debugbreak(); }
inline bool isDebuggerActive()
{
return IsDebuggerPresent();
return IsDebuggerPresent() != 0;
}
#else
inline void BreakIntoDebugger(){}