[Mockpp-commits] mockpp/mockpp mockpp.h,1.65,1.66 Throwable.h,1.16,1.17
Brought to you by:
ewald-arnold
From: Ewald A. <ewa...@us...> - 2005-12-03 13:10:23
|
Update of /cvsroot/mockpp/mockpp/mockpp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6040/mockpp Modified Files: mockpp.h Throwable.h Log Message: central exception handling Index: mockpp.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/mockpp.h,v retrieving revision 1.65 retrieving revision 1.66 diff -u -d -r1.65 -r1.66 --- mockpp.h 1 Dec 2005 18:15:08 -0000 1.65 +++ mockpp.h 3 Dec 2005 13:10:12 -0000 1.66 @@ -212,26 +212,26 @@ #else -#define CPPUNIT_DISABLE_EXCEPTIONS // ea-hack +#define CPPUNIT_DISABLE_EXCEPTIONS // ea-hack not available in official cppunit # ifndef MOCKPP_THROW -# define MOCKPP_THROW(x) /**/ +# define MOCKPP_THROW(x) /* nothing */ # endif # ifndef MOCKPP_RETHROW -# define MOCKPP_RETHROW /**/ +# define MOCKPP_RETHROW /* nothing */ # endif # ifndef MOCKPP_TRY -# define MOCKPP_TRY /**/ +# define MOCKPP_TRY /* nothing */ # endif # ifndef MOCKPP_CATCH -# define MOCKPP_CATCH(x) if(false) +# define MOCKPP_CATCH(x) if(false) /* usage limited */ # endif # ifndef MOCKPP_CATCH_ALL -# define MOCKPP_CATCH_ALL +# define MOCKPP_CATCH_ALL /* nothing */ # endif #endif Index: Throwable.h =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/Throwable.h,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- Throwable.h 27 Nov 2005 17:27:56 -0000 1.16 +++ Throwable.h 3 Dec 2005 13:10:12 -0000 1.17 @@ -76,7 +76,7 @@ virtual void throw_me() { ++thrown; - MOCKPP_THROW(obj); + forwardMalfunctionData(obj); } |