mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Fixed multiply defined symbol definition for MOCK_FUNCTION included from several translation units
This commit is contained in:
parent
fc8c6bde19
commit
86371b5695
8 changed files with 62 additions and 9 deletions
|
|
@ -163,7 +163,7 @@
|
|||
|
||||
#define MOCK_FUNCTION_AUX(F, n, S, t, s, tpn) \
|
||||
MOCK_FUNCTION_HELPER(S, t, s, tpn) \
|
||||
s inline MOCK_DECL(F, n, S,,tpn) \
|
||||
s MOCK_DECL(F, n, S,,tpn) \
|
||||
{ \
|
||||
BOOST_MPL_ASSERT_RELATION( n, ==, \
|
||||
boost::function_types::function_arity< \
|
||||
|
|
@ -210,7 +210,8 @@
|
|||
#define MOCK_FUNCTION(F, n, ...) \
|
||||
MOCK_FUNCTION_AUX(F, n, \
|
||||
MOCK_VARIADIC_ELEM_0(__VA_ARGS__), \
|
||||
MOCK_VARIADIC_ELEM_1(__VA_ARGS__, F),,)
|
||||
MOCK_VARIADIC_ELEM_1(__VA_ARGS__, F), \
|
||||
inline,)
|
||||
|
||||
#define MOCK_STATIC_METHOD(F, n, ...) \
|
||||
MOCK_FUNCTION_AUX(F, n, \
|
||||
|
|
@ -231,10 +232,11 @@
|
|||
MOCK_METHOD_EXT(M, n, M##_sig_type, M)
|
||||
|
||||
#define MOCK_FUNCTION(F, n, S, t) \
|
||||
MOCK_FUNCTION_AUX(F, n, S, t,,)
|
||||
MOCK_FUNCTION_AUX(F, n, S, t, inline,)
|
||||
|
||||
#define MOCK_STATIC_METHOD(F, n, S, t) \
|
||||
MOCK_FUNCTION_AUX(F, n, S, t, static,)
|
||||
|
||||
#define MOCK_STATIC_METHOD_TPL(F, n, S, t) \
|
||||
MOCK_FUNCTION_AUX(F, n, S, t, static, typename)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue