[C++-sig] boost python calling conventions support patch submission (__stdcall, __cdecl, __fastcall)
Nicolas Lelong
nico_ml at mgdesign.org
Thu Jan 28 10:31:39 CET 2010
Le 27/01/2010 17:34, David Abrahams a écrit :
> I'm not sure exactly what "enable the unit tests" means in this case.
> Can you be explicit and/or preferably provide an illustrative patch?
>
As I'm a complete bjam noob, I made an attempt that is certainly clumsy
and/or inelegant.
The idea would be to conditionally compile/run the test, the condition
being the current toolset is in a given set of toolsets (currently only
'msvc' toolset).
In the attached patch, I conditionnally define
'BOOST_PYTHON_TEST_ENABLE' on 'msvc' toolset, and I modified the tests
to use calling conventions only if 'BOOST_PYTHON_TEST_ENABLE' if defined.
I suppose that there's a way to instruct bjam to conditionally
compile/run a test, that would be more clear, and would prevent to
change the tests.
What do you think ?
Cheers,
Nicolas.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: boost.python.calling_conventions_test_compiler_selection_hack.patch
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20100128/3239058f/attachment.txt>
More information about the Cplusplus-sig
mailing list