Turns out, you can't use preprocessor directives inside macro arguments. Who'd have thought?
		
			
				
	
	
		
			12 lines
		
	
	
		
			216 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			216 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#include "perf_precomp.hpp"
 | 
						|
#include "opencv2/ts/gpu_perf.hpp"
 | 
						|
 | 
						|
static const char * impls[] = {
 | 
						|
#ifdef HAVE_CUDA
 | 
						|
    "cuda",
 | 
						|
#endif
 | 
						|
    "plain"
 | 
						|
};
 | 
						|
 | 
						|
CV_PERF_TEST_MAIN_WITH_IMPLS(nonfree, impls, perf::printCudaInfo())
 |