mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-03 21:49:32 +01:00 
			
		
		
		
	Eliminate some work when results won't be reported.
This commit is contained in:
		
				
					committed by
					
						
						Martin Hořeňovský
					
				
			
			
				
	
			
			
			
						parent
						
							8d380a7399
						
					
				
				
					commit
					a53ea30723
				
			@@ -83,12 +83,12 @@
 | 
			
		||||
///////////////////////////////////////////////////////////////////////////////
 | 
			
		||||
#define INTERNAL_CATCH_IF( macroName, resultDisposition, expr ) \
 | 
			
		||||
    INTERNAL_CATCH_TEST( macroName, resultDisposition, expr ); \
 | 
			
		||||
    if( Catch::getResultCapture().getLastResult()->succeeded() )
 | 
			
		||||
    if( Catch::getResultCapture().lastAssertionPassed() )
 | 
			
		||||
 | 
			
		||||
///////////////////////////////////////////////////////////////////////////////
 | 
			
		||||
#define INTERNAL_CATCH_ELSE( macroName, resultDisposition, expr ) \
 | 
			
		||||
    INTERNAL_CATCH_TEST( macroName, resultDisposition, expr ); \
 | 
			
		||||
    if( !Catch::getResultCapture().getLastResult()->succeeded() )
 | 
			
		||||
    if( !Catch::getResultCapture().lastAssertionPassed() )
 | 
			
		||||
 | 
			
		||||
///////////////////////////////////////////////////////////////////////////////
 | 
			
		||||
#define INTERNAL_CATCH_NO_THROW( macroName, resultDisposition, expr ) \
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user