G+S
mo
24.08.0
Geometry + Simulation Modules
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
Config.h
1
#ifndef UNITTEST_CONFIG_H
2
#define UNITTEST_CONFIG_H
3
4
// Standard defines documented here: http://predef.sourceforge.net
5
6
#if defined(_MSC_VER)
7
#pragma warning(disable:4702) // unreachable code
8
#pragma warning(disable:4722) // destructor never returns, potential memory leak
9
10
#if (_MSC_VER == 1200) // VC6
11
#define UNITTEST_COMPILER_IS_MSVC6
12
#pragma warning(disable:4786)
13
#pragma warning(disable:4290)
14
#endif
15
16
#ifdef _USRDLL
17
#define UNITTEST_WIN32_DLL
18
#endif
19
#define UNITTEST_WIN32
20
#endif
21
22
#if defined(unix) || defined(__unix__) || defined(__unix) || defined(linux) || \
23
defined(__APPLE__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__)
24
#define UNITTEST_POSIX
25
#endif
26
27
#if defined(__MINGW32__)
28
#define UNITTEST_MINGW
29
#endif
30
31
32
// By default, MemoryOutStream is implemented in terms of std::ostringstream.
33
// This is useful if you are using the CHECK macros on objects that have something like this defined:
34
// std::ostringstream& operator<<(std::ostringstream& s, const YourObject& value)
35
//
36
// On the other hand, it can be more expensive.
37
// Un-comment this line to use the custom MemoryOutStream (no deps on std::ostringstream).
38
39
// #define UNITTEST_USE_CUSTOM_STREAMS
40
41
// Developer note: This dual-macro setup is to preserve compatibility with UnitTest++ 1.4 users
42
// who may have used or defined UNITTEST_USE_CUSTOM_STREAMS outside of this configuration file, as
43
// well as Google Code HEAD users that may have used or defined
44
// UNITTEST_MEMORYOUTSTREAM_IS_STD_OSTRINGSTREAM outside of this configuration file.
45
#ifndef UNITTEST_USE_CUSTOM_STREAMS
46
#define UNITTEST_MEMORYOUTSTREAM_IS_STD_OSTRINGSTREAM
47
#endif
48
49
// DeferredTestReporter uses the STL to collect test results for subsequent export by reporters like
50
// XmlTestReporter. If you don't want to use this functionality, uncomment this line and no STL
51
// headers or code will be compiled into UnitTest++
52
53
//#define UNITTEST_NO_DEFERRED_REPORTER
54
55
56
// By default, asserts that you report via UnitTest::ReportAssert() abort the current test and
57
// continue to the next one by throwing an exception, which unwinds the stack naturally, destroying
58
// all auto variables on its way back down. If you don't want to (or can't) use exceptions for your
59
// platform/compiler, uncomment this line. All exception code will be removed from UnitTest++,
60
// assert recovery will be done via setjmp/longjmp, and NO correct stack unwinding will happen!
61
62
//#define UNITTEST_NO_EXCEPTIONS
63
64
65
// std namespace qualification: used for functions like strcpy that
66
// may live in std:: namespace (cstring header).
67
#if defined( UNITTEST_COMPILER_IS_MSVC6 )
68
#define UNIITEST_NS_QUAL_STD(x) x
69
#else
70
#define UNIITEST_NS_QUAL_STD(x) ::std::x
71
#endif
72
73
#endif
gismo
optional
gsUnitTest
Config.h
Generated on Thu Nov 21 2024 14:52:14 for G+Smo by Doxygen v1.8.5