Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:54:05

0001 
0002 //              Copyright Catch2 Authors
0003 // Distributed under the Boost Software License, Version 1.0.
0004 //   (See accompanying file LICENSE.txt or copy at
0005 //        https://www.boost.org/LICENSE_1_0.txt)
0006 
0007 // SPDX-License-Identifier: BSL-1.0
0008 
0009 /** \file
0010  * Wrapper for the WCHAR configuration option
0011  *
0012  * We want to support platforms that do not provide `wchar_t`, so we
0013  * sometimes have to disable providing wchar_t overloads through Catch2,
0014  * e.g. the StringMaker specialization for `std::wstring`.
0015  */
0016 
0017 #ifndef CATCH_CONFIG_WCHAR_HPP_INCLUDED
0018 #define CATCH_CONFIG_WCHAR_HPP_INCLUDED
0019 
0020 #include <catch2/catch_user_config.hpp>
0021 
0022 // We assume that WCHAR should be enabled by default, and only disabled
0023 // for a shortlist (so far only DJGPP) of compilers.
0024 
0025 #if defined(__DJGPP__)
0026 #  define CATCH_INTERNAL_CONFIG_NO_WCHAR
0027 #endif // __DJGPP__
0028 
0029 #if !defined( CATCH_INTERNAL_CONFIG_NO_WCHAR ) && \
0030     !defined( CATCH_CONFIG_NO_WCHAR ) && \
0031     !defined( CATCH_CONFIG_WCHAR )
0032 #    define CATCH_CONFIG_WCHAR
0033 #endif
0034 
0035 #endif // CATCH_CONFIG_WCHAR_HPP_INCLUDED