mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Removed stdcall tests and examples for all compilers but msvc
This commit is contained in:
parent
b8e8b6ffbf
commit
a178fc442a
2 changed files with 1 additions and 60 deletions
|
|
@ -249,16 +249,6 @@ MOCK_CLASS( mock_class )
|
||||||
};
|
};
|
||||||
//]
|
//]
|
||||||
}
|
}
|
||||||
#elif defined( BOOST_GCC )
|
|
||||||
namespace member_function_example_10
|
|
||||||
{
|
|
||||||
//[ member_function_example_10
|
|
||||||
MOCK_CLASS( mock_class )
|
|
||||||
{
|
|
||||||
MOCK_METHOD( __attribute((stdcall)) method, 0, void(), method ) // all parameters must be provided when specifying a different calling convention
|
|
||||||
};
|
|
||||||
//]
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace static_member_function_example_1
|
namespace static_member_function_example_1
|
||||||
|
|
@ -292,16 +282,6 @@ MOCK_CLASS( mock_class )
|
||||||
};
|
};
|
||||||
//]
|
//]
|
||||||
}
|
}
|
||||||
#elif defined( BOOST_GCC )
|
|
||||||
namespace static_member_function_example_4
|
|
||||||
{
|
|
||||||
//[ static_member_function_example_4
|
|
||||||
MOCK_CLASS( mock_class )
|
|
||||||
{
|
|
||||||
MOCK_STATIC_METHOD( __attribute((stdcall)) method, 0, void(), method ) // all parameters must be provided when specifying a different calling convention
|
|
||||||
};
|
|
||||||
//]
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace constructor_example_1
|
namespace constructor_example_1
|
||||||
|
|
@ -336,16 +316,6 @@ MOCK_CLASS( mock_class )
|
||||||
};
|
};
|
||||||
//]
|
//]
|
||||||
}
|
}
|
||||||
#elif defined( BOOST_GCC )
|
|
||||||
namespace constructor_example_4
|
|
||||||
{
|
|
||||||
//[ constructor_example_4
|
|
||||||
MOCK_CLASS( mock_class )
|
|
||||||
{
|
|
||||||
MOCK_CONSTRUCTOR( __attribute((stdcall)) mock_class, 0, (), constructor )
|
|
||||||
};
|
|
||||||
//]
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace destructor_example_1
|
namespace destructor_example_1
|
||||||
|
|
@ -368,16 +338,6 @@ MOCK_CLASS( mock_class )
|
||||||
};
|
};
|
||||||
//]
|
//]
|
||||||
}
|
}
|
||||||
#elif defined( BOOST_GCC )
|
|
||||||
namespace destructor_example_3
|
|
||||||
{
|
|
||||||
//[ destructor_example_3
|
|
||||||
MOCK_CLASS( mock_class )
|
|
||||||
{
|
|
||||||
MOCK_DESTRUCTOR( __attribute((stdcall)) ~mock_class, destructor )
|
|
||||||
};
|
|
||||||
//]
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace conversion_operator_example_1
|
namespace conversion_operator_example_1
|
||||||
|
|
@ -414,16 +374,6 @@ MOCK_CLASS( mock_class )
|
||||||
};
|
};
|
||||||
//]
|
//]
|
||||||
}
|
}
|
||||||
#elif defined( BOOST_GCC )
|
|
||||||
namespace conversion_operator_example_4
|
|
||||||
{
|
|
||||||
//[ conversion_operator_example_4
|
|
||||||
MOCK_CLASS( mock_class )
|
|
||||||
{
|
|
||||||
MOCK_CONVERSION_OPERATOR( __attribute((stdcall)) operator, int, conversion_to_int )
|
|
||||||
};
|
|
||||||
//]
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace function_example_1
|
namespace function_example_1
|
||||||
|
|
@ -445,13 +395,6 @@ namespace 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 )
|
|
||||||
namespace function_example_3
|
|
||||||
{
|
|
||||||
//[ function_example_3
|
|
||||||
MOCK_FUNCTION( __attribute((stdcall)) f, 0, void(), f ) // all parameters must be provided when specifying a different calling convention
|
|
||||||
//]
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace functor_example_1
|
namespace functor_example_1
|
||||||
|
|
|
||||||
|
|
@ -433,11 +433,9 @@ namespace
|
||||||
|
|
||||||
#ifdef BOOST_MSVC
|
#ifdef BOOST_MSVC
|
||||||
# define MOCK_STDCALL __stdcall
|
# define MOCK_STDCALL __stdcall
|
||||||
#elif defined( BOOST_GCC )
|
|
||||||
# define MOCK_STDCALL __attribute((stdcall))
|
|
||||||
#else
|
#else
|
||||||
# define MOCK_STDCALL
|
# define MOCK_STDCALL
|
||||||
#endif // BOOST_GCC
|
#endif
|
||||||
|
|
||||||
namespace stdcall
|
namespace stdcall
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue