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);
}
|