C++ calling convention only
John Colvin via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Feb 19 13:34:56 PST 2015
On Thursday, 19 February 2015 at 21:33:50 UTC, John Colvin wrote:
> On Thursday, 19 February 2015 at 18:25:10 UTC, Benjamin Thaut
> wrote:
>> Is it possible to declare a function in D which gets the C++
>> calling convetion but not the C++ mangling?
>>
>> Kind Regards
>> Benjamin Thaut
>
> You can use pragma(mangle, ...) to set whatever mangling you
> like.
I would duplicate the declaration, once without extern(C++), once
with, the use the .mangleof from the 1st to set the mangle of the
2nd with pragma(mangle
More information about the Digitalmars-d-learn
mailing list