mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-04 05:59:32 +01:00 
			
		
		
		
	Add GENERATE_COPY and GENERATE_VAR capturing generator macros
This commit is contained in:
		@@ -201,7 +201,10 @@ namespace Generators {
 | 
			
		||||
} // namespace Catch
 | 
			
		||||
 | 
			
		||||
#define GENERATE( ... ) \
 | 
			
		||||
    Catch::Generators::generate( CATCH_INTERNAL_LINEINFO, []{ using namespace Catch::Generators; return makeGenerators( __VA_ARGS__ ); } )
 | 
			
		||||
 | 
			
		||||
    Catch::Generators::generate( CATCH_INTERNAL_LINEINFO, [ ]{ using namespace Catch::Generators; return makeGenerators( __VA_ARGS__ ); } )
 | 
			
		||||
#define GENERATE_COPY( ... ) \
 | 
			
		||||
    Catch::Generators::generate( CATCH_INTERNAL_LINEINFO, [=]{ using namespace Catch::Generators; return makeGenerators( __VA_ARGS__ ); } )
 | 
			
		||||
#define GENERATE_REF( ... ) \
 | 
			
		||||
    Catch::Generators::generate( CATCH_INTERNAL_LINEINFO, [&]{ using namespace Catch::Generators; return makeGenerators( __VA_ARGS__ ); } )
 | 
			
		||||
 | 
			
		||||
#endif // TWOBLUECUBES_CATCH_GENERATORS_HPP_INCLUDED
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user