debug stream fixes

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

View File

@ -137,8 +137,8 @@ namespace Catch
) )
{ {
Config config; Config config;
if( isDebuggerActive() ) // if( isDebuggerActive() )
config.useStream( "debug" ); // config.useStream( "debug" );
return Main( argc, argv, config ); return Main( argc, argv, config );
} }

View File

@ -92,7 +92,7 @@
#define BreakIntoDebugger() if (IsDebuggerPresent() ) { __debugbreak(); } #define BreakIntoDebugger() if (IsDebuggerPresent() ) { __debugbreak(); }
inline bool isDebuggerActive() inline bool isDebuggerActive()
{ {
return IsDebuggerPresent(); return IsDebuggerPresent() != 0;
} }
#else #else
inline void BreakIntoDebugger(){} inline void BreakIntoDebugger(){}