[Mockpp-commits] mockpp/mockpp/chaining ChainingMockObjectSupport.h,1.22,1.23
Brought to you by:
ewald-arnold
From: Ewald A. <ewa...@us...> - 2005-11-27 15:34:54
|
Update of /cvsroot/mockpp/mockpp/mockpp/chaining In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19644/mockpp/chaining Modified Files: ChainingMockObjectSupport.h Log Message: optionally disable runtime type information (rtti) Index: ChainingMockObjectSupport.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/chaining/ChainingMockObjectSupport.h,v retrieving revision 1.22 retrieving revision 1.23 diff -u -d -r1.22 -r1.23 --- ChainingMockObjectSupport.h 26 Nov 2005 17:56:30 -0000 1.22 +++ ChainingMockObjectSupport.h 27 Nov 2005 15:34:36 -0000 1.23 @@ -237,6 +237,8 @@ } +#ifndef MOCKPP_NO_RTTI + /** Creates a constraint that checks if an object is derived from a base class. * The base class is needed since dynamic_cast checks for an existing traversal * from \c derived to \c base. @@ -252,6 +254,8 @@ return new IsInstanceOf<ROOT, DERIVED>(); } +#endif // MOCKPP_NO_RTTI + /** Creates a constraint that checks for the occurence of a substring * @ingroup grp_constraint_abbrev @@ -655,7 +659,9 @@ using mockpp::gt; using mockpp::lt; using mockpp::same; +#ifndef MOCKPP_NO_RTTI using mockpp::isA; +#endif using mockpp::stringContains; using mockpp::startsWith; using mockpp::endsWith; |