mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-30 19:57:10 +01:00 
			
		
		
		
	Move CATCH_INTERNAL_STRINGIFY macro into its own header
This commit is contained in:
		| @@ -86,6 +86,7 @@ | ||||
| #include <catch2/internal/catch_platform.hpp> | ||||
| #include <catch2/internal/catch_polyfills.hpp> | ||||
| #include <catch2/internal/catch_preprocessor.hpp> | ||||
| #include <catch2/internal/catch_preprocessor_internal_stringify.hpp> | ||||
| #include <catch2/internal/catch_preprocessor_remove_parens.hpp> | ||||
| #include <catch2/internal/catch_random_number_generator.hpp> | ||||
| #include <catch2/internal/catch_random_seed_generation.hpp> | ||||
|   | ||||
| @@ -0,0 +1,19 @@ | ||||
|  | ||||
| //              Copyright Catch2 Authors | ||||
| // Distributed under the Boost Software License, Version 1.0. | ||||
| //   (See accompanying file LICENSE.txt or copy at | ||||
| //        https://www.boost.org/LICENSE_1_0.txt) | ||||
|  | ||||
| // SPDX-License-Identifier: BSL-1.0 | ||||
| #ifndef CATCH_PREPROCESSOR_INTERNAL_STRINGIFY_HPP_INCLUDED | ||||
| #define CATCH_PREPROCESSOR_INTERNAL_STRINGIFY_HPP_INCLUDED | ||||
|  | ||||
| #include <catch2/catch_user_config.hpp> | ||||
|  | ||||
| #if !defined(CATCH_CONFIG_DISABLE_STRINGIFICATION) | ||||
|   #define CATCH_INTERNAL_STRINGIFY(...) #__VA_ARGS__##_catch_sr | ||||
| #else | ||||
|   #define CATCH_INTERNAL_STRINGIFY(...) "Disabled by CATCH_CONFIG_DISABLE_STRINGIFICATION"_catch_sr | ||||
| #endif | ||||
|  | ||||
| #endif // CATCH_PREPROCESSOR_INTERNAL_STRINGIFY_HPP_INCLUDED | ||||
| @@ -10,6 +10,7 @@ | ||||
|  | ||||
| #include <catch2/catch_user_config.hpp> | ||||
| #include <catch2/internal/catch_assertion_handler.hpp> | ||||
| #include <catch2/internal/catch_preprocessor_internal_stringify.hpp> | ||||
| #include <catch2/interfaces/catch_interfaces_capture.hpp> | ||||
| #include <catch2/internal/catch_stringref.hpp> | ||||
| #include <catch2/internal/catch_source_line_info.hpp> | ||||
| @@ -22,12 +23,6 @@ | ||||
|  | ||||
| #if !defined(CATCH_CONFIG_DISABLE) | ||||
|  | ||||
| #if !defined(CATCH_CONFIG_DISABLE_STRINGIFICATION) | ||||
|   #define CATCH_INTERNAL_STRINGIFY(...) #__VA_ARGS__##_catch_sr | ||||
| #else | ||||
|   #define CATCH_INTERNAL_STRINGIFY(...) "Disabled by CATCH_CONFIG_DISABLE_STRINGIFICATION"_catch_sr | ||||
| #endif | ||||
|  | ||||
| #if defined(CATCH_CONFIG_FAST_COMPILE) || defined(CATCH_CONFIG_DISABLE_EXCEPTIONS) | ||||
|  | ||||
| /////////////////////////////////////////////////////////////////////////////// | ||||
|   | ||||
| @@ -8,9 +8,14 @@ | ||||
| #ifndef CATCH_MATCHERS_IMPL_HPP_INCLUDED | ||||
| #define CATCH_MATCHERS_IMPL_HPP_INCLUDED | ||||
|  | ||||
| #include <catch2/internal/catch_test_macro_impl.hpp> | ||||
| #include <catch2/internal/catch_assertion_handler.hpp> | ||||
| #include <catch2/internal/catch_source_line_info.hpp> | ||||
| #include <catch2/internal/catch_decomposer.hpp> | ||||
| #include <catch2/internal/catch_preprocessor_internal_stringify.hpp> | ||||
| #include <catch2/internal/catch_move_and_forward.hpp> | ||||
|  | ||||
| #include <string> | ||||
|  | ||||
| namespace Catch { | ||||
|  | ||||
|     template<typename ArgT, typename MatcherT> | ||||
|   | ||||
| @@ -110,6 +110,7 @@ internal_headers = [ | ||||
|   'internal/catch_platform.hpp', | ||||
|   'internal/catch_polyfills.hpp', | ||||
|   'internal/catch_preprocessor.hpp', | ||||
|   'internal/catch_preprocessor_internal_stringify.hpp', | ||||
|   'internal/catch_preprocessor_remove_parens.hpp', | ||||
|   'internal/catch_random_number_generator.hpp', | ||||
|   'internal/catch_random_seed_generation.hpp', | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Martin Hořeňovský
					Martin Hořeňovský