unittest-cpp/config.h
Patrick Johnmeyer b2e2959c76 r12 | charles.nicholson | 2010-03-17 18:59:25 -0500 (Wed, 17 Mar 2010) | 1 line
move unittestpp.h and config.h to top-level folder, to allow 'include unittestpp/unittestpp.h' directives in client code
2013-01-09 23:43:37 -06:00

33 lines
1.1 KiB
C++

#ifndef UNITTEST_CONFIG_H
#define UNITTEST_CONFIG_H
// Standard defines documented here: http://predef.sourceforge.net
#if defined(_MSC_VER)
#pragma warning(disable:4127) // conditional expression is constant
#pragma warning(disable:4702) // unreachable code
#pragma warning(disable:4722) // destructor never returns, potential memory leak
#if (_MSC_VER == 1200) // VC6
#pragma warning(disable:4786)
#pragma warning(disable:4290)
#endif
#endif
#if defined(unix) || defined(__unix__) || defined(__unix) || defined(linux) || \
defined(__APPLE__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__)
#define UNITTEST_POSIX
#endif
#if defined(__MINGW32__)
#define UNITTEST_MINGW
#endif
// by default, MemoryOutStream is implemented in terms of std::ostringstream, which can be expensive.
// uncomment this line to use the custom MemoryOutStream (no deps on std::ostringstream).
#define UNITTEST_USE_CUSTOM_STREAMS
#define UNITTEST_USE_DEFERRED_REPORTER
#define UNITTEST_USE_EXCEPTIONS
#endif