mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 21:36:11 +01:00
debug stream fixes
This commit is contained in:
parent
7a4b215dd3
commit
84b394ec45
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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(){}
|
||||||
|
Loading…
Reference in New Issue
Block a user