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