root/library/tests/unittest-cpp/Config.h @ 451

Revision 418, 1.0 kB (checked in by vbarta, 15 years ago)

#27: added UnitTest?++ to bdm sources, changed test_user_data to use it

Line 
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
11        #if (_MSC_VER == 1200)  // VC6
12                #pragma warning(disable:4786)
13                #pragma warning(disable:4290)
14        #endif
15#endif
16
17#if defined(unix) || defined(__unix__) || defined(__unix) || defined(linux) || \
18    defined(__APPLE__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__)       
19    #define UNITTEST_POSIX
20#endif
21
22#if defined(__MINGW32__)
23    #define UNITTEST_MINGW
24#endif
25
26// by default, MemoryOutStream is implemented in terms of std::ostringstream, which can be expensive.
27// uncomment this line to use the custom MemoryOutStream (no deps on std::ostringstream).
28
29//#define UNITTEST_USE_CUSTOM_STREAMS
30
31#endif
Note: See TracBrowser for help on using the browser.