mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-03 21:49:32 +01:00 
			
		
		
		
	debug stream fixes
This commit is contained in:
		@@ -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(){}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user