Fixed mock function documentation

git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@714 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
mat007 2014-02-16 15:55:14 +00:00
parent c3c07b81a2
commit f04be9827f

View file

@ -434,17 +434,14 @@ BOOST_AUTO_TEST_CASE( demonstrates_instantiating_a_mock_function )
namespace function_example_2 namespace function_example_2
{ {
//[ function_example_2 //[ function_example_2
MOCK_FUNCTION( __stdcall f, 0, void(), f ) // all parameters must be provided when specifying a different calling convention MOCK_FUNCTION( __stdcall f, 0, void(), f ) // all parameters must be provided when specifying a different calling convention
//] //]
} }
#elif defined( BOOST_GCC ) #elif defined( BOOST_GCC )
namespace function_example_3 namespace function_example_3
{ {
//[ function_example_3 //[ function_example_3
MOCK_CLASS( mock_class ) MOCK_FUNCTION( __attribute((stdcall)) f, 0, void(), f ) // all parameters must be provided when specifying a different calling convention
{
MOCK_FUNCTION( __attribute((stdcall)) f, 0, void() )
};
//] //]
} }
#endif #endif