mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-04 05:59:32 +01:00 
			
		
		
		
	@@ -52,6 +52,7 @@ set(INTERNAL_HEADERS
 | 
			
		||||
    ${SOURCES_DIR}/internal/catch_compiler_capabilities.hpp
 | 
			
		||||
    ${SOURCES_DIR}/catch_config.hpp
 | 
			
		||||
    ${SOURCES_DIR}/internal/catch_config_android_logwrite.hpp
 | 
			
		||||
    ${SOURCES_DIR}/internal/catch_config_counter.hpp
 | 
			
		||||
    ${SOURCES_DIR}/internal/catch_config_uncaught_exceptions.hpp
 | 
			
		||||
    ${SOURCES_DIR}/internal/catch_config_wchar.hpp
 | 
			
		||||
    ${SOURCES_DIR}/internal/catch_console_colour.hpp
 | 
			
		||||
 
 | 
			
		||||
@@ -51,6 +51,7 @@
 | 
			
		||||
#include <catch2/internal/catch_commandline.hpp>
 | 
			
		||||
#include <catch2/internal/catch_compiler_capabilities.hpp>
 | 
			
		||||
#include <catch2/internal/catch_config_android_logwrite.hpp>
 | 
			
		||||
#include <catch2/internal/catch_config_counter.hpp>
 | 
			
		||||
#include <catch2/internal/catch_config_uncaught_exceptions.hpp>
 | 
			
		||||
#include <catch2/internal/catch_config_wchar.hpp>
 | 
			
		||||
#include <catch2/internal/catch_console_colour.hpp>
 | 
			
		||||
 
 | 
			
		||||
@@ -8,6 +8,7 @@
 | 
			
		||||
#ifndef CATCH_TAG_ALIAS_AUTOREGISTRAR_HPP_INCLUDED
 | 
			
		||||
#define CATCH_TAG_ALIAS_AUTOREGISTRAR_HPP_INCLUDED
 | 
			
		||||
 | 
			
		||||
#include <catch2/internal/catch_compiler_capabilities.hpp>
 | 
			
		||||
#include <catch2/internal/catch_source_line_info.hpp>
 | 
			
		||||
 | 
			
		||||
namespace Catch {
 | 
			
		||||
 
 | 
			
		||||
@@ -11,7 +11,6 @@
 | 
			
		||||
// Detect a number of compiler features - by compiler
 | 
			
		||||
// The following features are defined:
 | 
			
		||||
//
 | 
			
		||||
// CATCH_CONFIG_COUNTER : is the __COUNTER__ macro supported?
 | 
			
		||||
// CATCH_CONFIG_WINDOWS_SEH : is Windows SEH supported?
 | 
			
		||||
// CATCH_CONFIG_POSIX_SIGNALS : are POSIX signals supported?
 | 
			
		||||
// CATCH_CONFIG_DISABLE_EXCEPTIONS : Are exceptions enabled?
 | 
			
		||||
@@ -193,18 +192,6 @@
 | 
			
		||||
    #define CATCH_INTERNAL_CONFIG_POLYFILL_ISNAN
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
////////////////////////////////////////////////////////////////////////////////
 | 
			
		||||
 | 
			
		||||
// Use of __COUNTER__ is suppressed during code analysis in
 | 
			
		||||
// CLion/AppCode 2017.2.x and former, because __COUNTER__ is not properly
 | 
			
		||||
// handled by it.
 | 
			
		||||
// Otherwise all supported compilers support COUNTER macro,
 | 
			
		||||
// but user still might want to turn it off
 | 
			
		||||
#if ( !defined(__JETBRAINS_IDE__) || __JETBRAINS_IDE__ >= 20170300L )
 | 
			
		||||
    #define CATCH_INTERNAL_CONFIG_COUNTER
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
////////////////////////////////////////////////////////////////////////////////
 | 
			
		||||
 | 
			
		||||
// RTX is a special version of Windows that is real time.
 | 
			
		||||
@@ -258,9 +245,6 @@
 | 
			
		||||
#endif // defined(__has_include)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#if defined(CATCH_INTERNAL_CONFIG_COUNTER) && !defined(CATCH_CONFIG_NO_COUNTER) && !defined(CATCH_CONFIG_COUNTER)
 | 
			
		||||
#   define CATCH_CONFIG_COUNTER
 | 
			
		||||
#endif
 | 
			
		||||
#if defined(CATCH_INTERNAL_CONFIG_WINDOWS_SEH) && !defined(CATCH_CONFIG_NO_WINDOWS_SEH) && !defined(CATCH_CONFIG_WINDOWS_SEH) && !defined(CATCH_INTERNAL_CONFIG_NO_WINDOWS_SEH)
 | 
			
		||||
#   define CATCH_CONFIG_WINDOWS_SEH
 | 
			
		||||
#endif
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										32
									
								
								src/catch2/internal/catch_config_counter.hpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								src/catch2/internal/catch_config_counter.hpp
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,32 @@
 | 
			
		||||
 | 
			
		||||
//              Copyright Catch2 Authors
 | 
			
		||||
// Distributed under the Boost Software License, Version 1.0.
 | 
			
		||||
//   (See accompanying file LICENSE_1_0.txt or copy at
 | 
			
		||||
//        https://www.boost.org/LICENSE_1_0.txt)
 | 
			
		||||
 | 
			
		||||
// SPDX-License-Identifier: BSL-1.0
 | 
			
		||||
 | 
			
		||||
/** \file
 | 
			
		||||
 * Wrapper for the CONFIG configuration option
 | 
			
		||||
 *
 | 
			
		||||
 * When generating internal unique names, there are two options. Either
 | 
			
		||||
 * we mix in the current line number, or mix in an incrementing number.
 | 
			
		||||
 * We prefer the latter, using `__COUNTER__`, but users might want to
 | 
			
		||||
 * use the former.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#ifndef CATCH_CONFIG_COUNTER_HPP_INCLUDED
 | 
			
		||||
#define CATCH_CONFIG_COUNTER_HPP_INCLUDED
 | 
			
		||||
 | 
			
		||||
#if ( !defined(__JETBRAINS_IDE__) || __JETBRAINS_IDE__ >= 20170300L )
 | 
			
		||||
    #define CATCH_INTERNAL_CONFIG_COUNTER
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#if defined( CATCH_INTERNAL_CONFIG_COUNTER ) && \
 | 
			
		||||
    !defined( CATCH_CONFIG_NO_COUNTER ) && \
 | 
			
		||||
    !defined( CATCH_CONFIG_COUNTER )
 | 
			
		||||
#    define CATCH_CONFIG_COUNTER
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#endif // CATCH_CONFIG_COUNTER_HPP_INCLUDED
 | 
			
		||||
@@ -8,7 +8,7 @@
 | 
			
		||||
#ifndef CATCH_SOURCE_LINE_INFO_HPP_INCLUDED
 | 
			
		||||
#define CATCH_SOURCE_LINE_INFO_HPP_INCLUDED
 | 
			
		||||
 | 
			
		||||
#include <catch2/internal/catch_compiler_capabilities.hpp>
 | 
			
		||||
#include <catch2/internal/catch_config_counter.hpp>
 | 
			
		||||
 | 
			
		||||
#include <cstddef>
 | 
			
		||||
#include <iosfwd>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user