mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-23 03:43:28 +01:00
debug stream fixes
This commit is contained in:
parent
7a4b215dd3
commit
84b394ec45
@ -137,8 +137,8 @@ namespace Catch
|
||||
)
|
||||
{
|
||||
Config config;
|
||||
if( isDebuggerActive() )
|
||||
config.useStream( "debug" );
|
||||
// if( isDebuggerActive() )
|
||||
// config.useStream( "debug" );
|
||||
return Main( argc, argv, config );
|
||||
}
|
||||
|
||||
|
@ -92,7 +92,7 @@
|
||||
#define BreakIntoDebugger() if (IsDebuggerPresent() ) { __debugbreak(); }
|
||||
inline bool isDebuggerActive()
|
||||
{
|
||||
return IsDebuggerPresent();
|
||||
return IsDebuggerPresent() != 0;
|
||||
}
|
||||
#else
|
||||
inline void BreakIntoDebugger(){}
|
||||
|
Loading…
Reference in New Issue
Block a user