alias and extern(C) for callbacks

Andrej Mitrovic andrej.mitrovich at gmail.com
Fri Aug 23 04:10:52 PDT 2013


On 8/23/13, Jacob Carlborg <doob at me.com> wrote:
> On 2013-08-23 02:00, Andrej Mitrovic wrote:
>
>> static assert(functionLinkage!test2 != "C");  // D calling convention
>
> Or Windows, Pascal or C++.

I'd prefer if functionLinkage returned an enum, it's too easy to write
"c" instead of "C" in some generic code and have a static if branch
not taken.


More information about the Digitalmars-d-learn mailing list