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<>
|