28 #ifndef CPPUTESTCONFIG_H_ 29 #define CPPUTESTCONFIG_H_ 33 #ifndef CPPUTEST_USE_OWN_CONFIGURATION 34 #include "CppUTestGeneratedConfig.h" 46 #pragma clang diagnostic push 47 #if __clang_major__ >= 3 && __clang_minor__ >= 6 48 #pragma clang diagnostic ignored "-Wreserved-id-macro" 65 #ifndef CPPUTEST_USE_STD_C_LIB 66 #ifdef CPPUTEST_STD_C_LIB_DISABLED 67 #define CPPUTEST_USE_STD_C_LIB 0 69 #define CPPUTEST_USE_STD_C_LIB 1 75 #ifndef CPPUTEST_USE_STD_CPP_LIB 76 #ifdef CPPUTEST_STD_CPP_LIB_DISABLED 77 #define CPPUTEST_USE_STD_CPP_LIB 0 79 #define CPPUTEST_USE_STD_CPP_LIB 1 88 #ifndef CPPUTEST_USE_MEM_LEAK_DETECTION 89 #ifdef CPPUTEST_MEM_LEAK_DETECTION_DISABLED 90 #define CPPUTEST_USE_MEM_LEAK_DETECTION 0 92 #define CPPUTEST_USE_MEM_LEAK_DETECTION 1 97 #include "StandardCLibrary.h" 104 #ifndef __has_attribute 105 #define __has_attribute(x) 0 108 #if __has_attribute(noreturn) 109 #define __no_return__ __attribute__((noreturn)) 111 #define __no_return__ 114 #if __has_attribute(format) 115 #define __check_format__(type, format_parameter, other_parameters) __attribute__ ((format (type, format_parameter, other_parameters))) 117 #define __check_format__(type, format_parameter, other_parameters) 124 #if CPPUTEST_USE_STD_CPP_LIB 125 #if defined(__cplusplus) && __cplusplus >= 201103L 126 #define UT_THROW(exception) 127 #define UT_NOTHROW noexcept 129 #define UT_THROW(exception) throw (exception) 130 #define UT_NOTHROW throw() 133 #define UT_THROW(exception) 135 #define UT_NOTHROW throw() 148 #define UT_THROW(exception) 151 #if defined(__cplusplus) && __cplusplus >= 201103L 152 #define DEFAULT_COPY_CONSTRUCTOR(classname) classname(const classname &) = default; 154 #define DEFAULT_COPY_CONSTRUCTOR(classname) 163 #ifdef __GXX_EXPERIMENTAL_CXX0X__ 165 #ifdef _GLIBCXX_THROW 167 #define UT_THROW(exception) _GLIBCXX_THROW(exception) 177 #if CPPUTEST_USE_STD_C_LIB && (!defined(_MSC_VER) || (_MSC_VER >= 1800)) 178 #define CPPUTEST_HAVE_FENV 179 #if defined(__WATCOMC__) || defined(__ARMEL__) || defined(__m68k__) 180 #define CPPUTEST_FENV_IS_WORKING_PROPERLY 0 182 #define CPPUTEST_FENV_IS_WORKING_PROPERLY 1 186 #undef CPPUTEST_HAVE_FENV // Not used by NetBurner 192 #if defined(__LP64__) || defined(_LP64) || (defined(__WORDSIZE) && (__WORDSIZE == 64 )) || defined(__x86_64) || defined(_WIN64) 193 #define CPPUTEST_64BIT 195 #define CPPUTEST_64BIT_32BIT_LONGS 202 #if CPPUTEST_USE_STD_C_LIB 203 #define CPPUTEST_CHAR_BIT CHAR_BIT 205 #define CPPUTEST_CHAR_BIT 8 210 #if CPPUTEST_USE_STD_C_LIB && (INT_MAX == 0x7fff) 211 #define CPPUTEST_16BIT_INTS 225 #if !defined(CPPUTEST_LONG_LONG_DISABLED) && !defined(CPPUTEST_USE_LONG_LONG) 226 #if defined(CPPUTEST_HAVE_LONG_LONG_INT) || defined(LLONG_MAX) 227 #define CPPUTEST_USE_LONG_LONG 1 231 #ifdef CPPUTEST_USE_LONG_LONG 232 typedef long long cpputest_longlong;
233 typedef unsigned long long cpputest_ulonglong;
239 #if defined(CPPUTEST_64BIT) && !defined(CPPUTEST_64BIT_32BIT_LONGS) 240 #define CPPUTEST_SIZE_OF_FAKE_LONG_LONG_TYPE 16 242 #define CPPUTEST_SIZE_OF_FAKE_LONG_LONG_TYPE 8 245 struct cpputest_longlong
247 #if defined(__cplusplus) 248 cpputest_longlong() {}
249 cpputest_longlong(
int) {}
251 char dummy[CPPUTEST_SIZE_OF_FAKE_LONG_LONG_TYPE];
254 struct cpputest_ulonglong
256 #if defined(__cplusplus) 257 cpputest_ulonglong() {}
258 cpputest_ulonglong(
int) {}
260 char dummy[CPPUTEST_SIZE_OF_FAKE_LONG_LONG_TYPE];
263 #if !defined(__cplusplus) 264 typedef struct cpputest_longlong cpputest_longlong;
265 typedef struct cpputest_ulonglong cpputest_ulonglong;
271 #if defined(__cplusplus) && ((__cplusplus >= 201103L) || (defined(_MSC_VER) && (_MSC_VER >= 1600))) 272 #define CPPUTEST_COMPILER_FULLY_SUPPORTS_CXX11 273 #define _override override 279 #undef __USE_MINGW_ANSI_STDIO 280 #define __USE_MINGW_ANSI_STDIO 1 283 #pragma clang diagnostic pop