|
27 | 27 | #define UNITTEST_MINGW |
28 | 28 | #endif |
29 | 29 |
|
30 | | -// by default, MemoryOutStream is implemented in terms of std::ostringstream, which can be expensive. |
31 | | -// uncomment this line to use the custom MemoryOutStream (no deps on std::ostringstream). |
32 | 30 |
|
33 | | -#define UNITTEST_USE_CUSTOM_STREAMS |
34 | | -#define UNITTEST_USE_DEFERRED_REPORTER |
35 | | -#define UNITTEST_USE_EXCEPTIONS |
| 31 | +// MemoryOutStream is a custom reimplementation of parts of std::ostringstream. |
| 32 | +// Uncomment this line to have MemoryOutStream 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 | +//#define UNITTEST_MEMORYOUTSTREAM_IS_STD_OSTRINGSTREAM |
| 37 | + |
| 38 | + |
| 39 | +// DeferredTestReporter uses the STL to collect test results for subsequent export by reporters like |
| 40 | +// XmlTestReporter. If you don't want to use this functionality, uncomment this line and no STL |
| 41 | +// headers or code will be compiled into UnitTest++ |
| 42 | + |
| 43 | +//#define UNITTEST_NO_DEFERRED_REPORTER |
| 44 | + |
| 45 | + |
| 46 | +// By default, asserts that you report via UnitTest::ReportAssert() abort the current test and |
| 47 | +// continue to the next one by throwing an exception, which unwinds the stack naturally, destroying |
| 48 | +// all auto variables on its way back down. If you don't want to (or can't) use exceptions for your |
| 49 | +// platform/compiler, uncomment this line. All exception code will be removed from UnitTest++, |
| 50 | +// assert recovery will be done via setjmp/longjmp, and NO correct stack unwinding will happen! |
| 51 | + |
| 52 | +//#define UNITTEST_NO_EXCEPTIONS |
| 53 | + |
36 | 54 |
|
37 | 55 | #endif |
0 commit comments