diff options
Diffstat (limited to 'cxxtest/ParenPrinter.h')
-rw-r--r-- | cxxtest/ParenPrinter.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/cxxtest/ParenPrinter.h b/cxxtest/ParenPrinter.h new file mode 100644 index 0000000..9ecf310 --- /dev/null +++ b/cxxtest/ParenPrinter.h @@ -0,0 +1,21 @@ +#ifndef __cxxtest__ParenPrinter_h__ +#define __cxxtest__ParenPrinter_h__ + +// +// The ParenPrinter is identical to the ErrorPrinter, except it +// prints the line number in a format expected by some compilers +// (notably, MSVC). +// + +#include <cxxtest/ErrorPrinter.h> + +namespace CxxTest +{ + class ParenPrinter : public ErrorPrinter + { + public: + ParenPrinter( CXXTEST_STD(ostream) &o = CXXTEST_STD(cout) ) : ErrorPrinter( o, "(", ")" ) {} + }; +} + +#endif // __cxxtest__ParenPrinter_h__ |