- Main Page
- Related Pages
- Classes
- Files

- File List
- File Members

# Config.h

    00001 #ifndef UNITTEST_CONFIG_H
    00002 #define UNITTEST_CONFIG_H
    00003
    00004 // Standard defines documented here: http://predef.sourceforge.net
    00005
    00006 #if defined(_MSC_VER)
    00007     #pragma warning(disable:4127) // conditional expression is constant
    00008         #pragma warning(disable:4702) // unreachable code
    00009         #pragma warning(disable:4722) // destructor never returns, potential memory leak
    00010
    00011         #if (_MSC_VER == 1200)  // VC6
    00012                 #pragma warning(disable:4786)
    00013                 #pragma warning(disable:4290)
    00014         #endif
    00015 #endif
    00016
    00017 #if defined(unix) || defined(__unix__) || defined(__unix) || defined(linux) || \
    00018     defined(__APPLE__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__)
    00019     #define UNITTEST_POSIX
    00020 #endif
    00021
    00022 #if defined(__MINGW32__)
    00023     #define UNITTEST_MINGW
    00024 #endif
    00025
    00026 // by default, MemoryOutStream is implemented in terms of std::ostringstream, which can be expensive.
    00027 // uncomment this line to use the custom MemoryOutStream (no deps on std::ostringstream).
    00028
    00029 //#define UNITTEST_USE_CUSTOM_STREAMS
    00030
    00031 #endif