mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	Prevent exception translator registration with CATCH_CONFIG_DISABLE
This commit is contained in:
		| @@ -8,11 +8,16 @@ | ||||
| #ifndef TWOBLUECUBES_CATCH_INTERFACES_EXCEPTION_H_INCLUDED | ||||
| #define TWOBLUECUBES_CATCH_INTERFACES_EXCEPTION_H_INCLUDED | ||||
|  | ||||
| #include "catch_interfaces_registry_hub.h" | ||||
|  | ||||
| #if defined(CATCH_CONFIG_DISABLE) | ||||
|     #define INTERNAL_CATCH_TRANSLATE_EXCEPTION_NO_REG( translatorName, signature) \ | ||||
|         static std::string translatorName( signature ) | ||||
| #endif | ||||
|  | ||||
| #include <string> | ||||
| #include <vector> | ||||
|  | ||||
| #include "catch_interfaces_registry_hub.h" | ||||
|  | ||||
| namespace Catch { | ||||
|     using exceptionTranslateFunction = std::string(*)(); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Martin Hořeňovský
					Martin Hořeňovský