diff --git a/turtle/detail/functor.hpp b/turtle/detail/functor.hpp index a33c768..2ac8c81 100644 --- a/turtle/detail/functor.hpp +++ b/turtle/detail/functor.hpp @@ -33,7 +33,4 @@ namespace detail } } // mock -#define MOCK_FUNCTOR(f, S) \ - mock::detail::functor< S > f, f##_mock - #endif // MOCK_FUNCTOR_HPP_INCLUDED diff --git a/turtle/mock.hpp b/turtle/mock.hpp index 6793b13..3fd26da 100644 --- a/turtle/mock.hpp +++ b/turtle/mock.hpp @@ -27,6 +27,8 @@ struct T : I, mock::object, mock::detail::base< I > #define MOCK_CLASS(T) \ struct T : mock::object +#define MOCK_FUNCTOR(f, S) \ + mock::detail::functor< S > f, f##_mock #define MOCK_HELPER(t) \ t##_mock( mock::detail::root, BOOST_PP_STRINGIZE(t) )