Refactoring

git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@488 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
mat007 2012-07-22 07:03:26 +00:00
parent d18cc38ac1
commit 435dadf89d
2 changed files with 33 additions and 41 deletions

View file

@ -141,8 +141,8 @@ namespace detail
MOCK_CONSTRUCTOR_AUX(T, n, A, t, BOOST_DEDUCED_TYPENAME)
#define MOCK_DESTRUCTOR(T, t) \
~T() { MOCK_ANONYMOUS_HELPER(t).test(); } \
MOCK_METHOD_HELPER(void(), t)
MOCK_METHOD_HELPER(void(), t) \
~T() { try { MOCK_ANONYMOUS_HELPER(t)(); } catch( ... ) {} }
#define MOCK_FUNCTION_AUX(F, n, S, t, s, tpn) \
MOCK_FUNCTION_HELPER(S, t, s) \