[Mockpp-commits] mockpp/mockpp/stub ThrowStub.h,1.31,1.32
Brought to you by:
ewald-arnold
From: Ewald A. <ewa...@us...> - 2005-11-27 15:34:53
|
Update of /cvsroot/mockpp/mockpp/mockpp/stub In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19644/mockpp/stub Modified Files: ThrowStub.h Log Message: optionally disable runtime type information (rtti) Index: ThrowStub.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/stub/ThrowStub.h,v retrieving revision 1.31 retrieving revision 1.32 diff -u -d -r1.31 -r1.32 --- ThrowStub.h 3 Apr 2005 18:32:53 -0000 1.31 +++ ThrowStub.h 27 Nov 2005 15:34:36 -0000 1.32 @@ -73,7 +73,11 @@ virtual String describeTo( String &buffer ) const { buffer += MOCKPP_PCHAR("throws <") +#ifdef MOCKPP_NO_RTTI + + MOCKPP_GET_STRING("[rtti-disabled]") +#else + MOCKPP_GET_STRING(typeid(throwable).name()) +#endif + MOCKPP_PCHAR(">"); return buffer; } @@ -117,7 +121,7 @@ }; - + /** A stub throwing exceptions. */ template<> |