mirror of
https://github.com/google/googletest.git
synced 2026-06-15 08:26:11 +08:00
Require a trailing semicolon in define_mock_method
This commit is contained in:
parent
b5dcdb1f7b
commit
711e2bf2ef
@ -372,7 +372,8 @@ using internal::FunctionMocker;
|
|||||||
_Constness, const, ) int _RefSpec>::Adjust(*this) \
|
_Constness, const, ) int _RefSpec>::Adjust(*this) \
|
||||||
.gmock_##_MethodName(GMOCK_PP_REPEAT( \
|
.gmock_##_MethodName(GMOCK_PP_REPEAT( \
|
||||||
GMOCK_INTERNAL_A_MATCHER_ARGUMENT, _Signature, _N)); \
|
GMOCK_INTERNAL_A_MATCHER_ARGUMENT, _Signature, _N)); \
|
||||||
}
|
} \
|
||||||
|
static_assert(true, "no-op to require trailing semicolon")
|
||||||
|
|
||||||
#define GMOCK_INTERNAL_EXPAND(...) __VA_ARGS__
|
#define GMOCK_INTERNAL_EXPAND(...) __VA_ARGS__
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user