comparison ext/UnitTest++/src/Config.h @ 37:0d325e9d5953

added unittest++ files into ext. Not hooked into build scripts yet
author jasoka@33b003aa-7bff-0310-803a-e67f0ece8222
date Sat, 12 Jul 2008 12:00:57 +0000
parents
children
comparison
equal deleted inserted replaced
36:6f1227f4932b 37:0d325e9d5953
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:4127) // conditional expression is constant
8 #pragma warning(disable:4702) // unreachable code
9 #pragma warning(disable:4722) // destructor never returns, potential memory leak
10 #endif
11
12 #if defined(unix) || defined(__unix__) || defined(__unix) || defined(linux) || \
13 defined(__APPLE__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined (__FreeBSD__)
14 #define UNITTEST_POSIX
15 #endif
16
17 #if defined (__MINGW32__)
18 #define UNITTEST_MINGW
19 #endif
20
21 // by default, MemoryOutStream is implemented in terms of std::ostringstream.
22 // uncomment this line to use the custom MemoryOutStream (no deps on std::ostringstream).
23 //#define UNITTEST_USE_CUSTOM_STREAMS
24
25 #endif