mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-03 21:49:32 +01:00 
			
		
		
		
	Added DYNAMIC_SECTION to CATCH_CONFIG_DISABLE builds
This commit is contained in:
		@@ -217,7 +217,8 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
using Catch::Detail::Approx;
 | 
					using Catch::Detail::Approx;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#else
 | 
					#else // CATCH_CONFIG_DISABLE
 | 
				
			||||||
 | 
					
 | 
				
			||||||
//////
 | 
					//////
 | 
				
			||||||
// If this config identifier is defined then all CATCH macros are prefixed with CATCH_
 | 
					// If this config identifier is defined then all CATCH macros are prefixed with CATCH_
 | 
				
			||||||
#ifdef CATCH_CONFIG_PREFIX_ALL
 | 
					#ifdef CATCH_CONFIG_PREFIX_ALL
 | 
				
			||||||
@@ -262,6 +263,7 @@ using Catch::Detail::Approx;
 | 
				
			|||||||
#define CATCH_METHOD_AS_TEST_CASE( method, ... )
 | 
					#define CATCH_METHOD_AS_TEST_CASE( method, ... )
 | 
				
			||||||
#define CATCH_REGISTER_TEST_CASE( Function, ... ) (void)(0)
 | 
					#define CATCH_REGISTER_TEST_CASE( Function, ... ) (void)(0)
 | 
				
			||||||
#define CATCH_SECTION( ... )
 | 
					#define CATCH_SECTION( ... )
 | 
				
			||||||
 | 
					#define CATCH_DYNAMIC_SECTION( ... )
 | 
				
			||||||
#define CATCH_FAIL( ... ) (void)(0)
 | 
					#define CATCH_FAIL( ... ) (void)(0)
 | 
				
			||||||
#define CATCH_FAIL_CHECK( ... ) (void)(0)
 | 
					#define CATCH_FAIL_CHECK( ... ) (void)(0)
 | 
				
			||||||
#define CATCH_SUCCEED( ... ) (void)(0)
 | 
					#define CATCH_SUCCEED( ... ) (void)(0)
 | 
				
			||||||
@@ -321,6 +323,7 @@ using Catch::Detail::Approx;
 | 
				
			|||||||
#define METHOD_AS_TEST_CASE( method, ... )
 | 
					#define METHOD_AS_TEST_CASE( method, ... )
 | 
				
			||||||
#define REGISTER_TEST_CASE( Function, ... ) (void)(0)
 | 
					#define REGISTER_TEST_CASE( Function, ... ) (void)(0)
 | 
				
			||||||
#define SECTION( ... )
 | 
					#define SECTION( ... )
 | 
				
			||||||
 | 
					#define DYNAMIC_SECTION( ... )
 | 
				
			||||||
#define FAIL( ... ) (void)(0)
 | 
					#define FAIL( ... ) (void)(0)
 | 
				
			||||||
#define FAIL_CHECK( ... ) (void)(0)
 | 
					#define FAIL_CHECK( ... ) (void)(0)
 | 
				
			||||||
#define SUCCEED( ... ) (void)(0)
 | 
					#define SUCCEED( ... ) (void)(0)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user