[C++-sig] exporting __stdcall methods

David Abrahams dave at boost-consulting.com
Fri Jul 29 13:07:52 CEST 2005


"Nicolas Lelong" <nico_ml at mgdesign.org> writes:

> Hi !
>
> as I have some time ahead, I upgraded my codebase to latest boost snapshot. 
> I was quite surprised to see that, by default, BPL still can't export 
> __stdcall & __fastcall functions, or, at least, I could not find anything 
> that allows that !...
>
> I thought that it may be useful to send my patch to deal with these calling 
> conventions...
>
> I improved somewhat the patch I used before to handle the situation a little 
> bit like type_traits lib does, by adding two defines that should sit in BPL 
> config.hpp : BOOST_PYTHON_ENABLE_STDCALL and BOOST_PYTHON_ENABLE_FASTCALL.
>
> I did not go on tweaking or adding a specific test, as I first wanted to 
> have some feedback about the usefulness of such a patch and about the 
> quality of the one I'm proposing.
>
> Any thoughts ?

Nicolas,

I think it would be great to support these other calling conventions.
Your patch looks good, but I'm quite surprised that it's so small.  Is
that really all that's required to implement full stdcall/fastcall
support?

P.S. Sorry this reply is so late!

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com




More information about the Cplusplus-sig mailing list