extern(C) vs. extern(Windows)
Mike Parker
aldacron71 at yahoo.com
Mon Apr 2 03:32:20 PDT 2007
Mike Parker wrote:
> Frits van Bommel wrote:
>> (assuming extern(C) for anything but Windows)
>>
I should also add that extern(Windows) should only be used for
interfacing with functions that are declared as __stdcall on the C side
(which is how PASCAL, WINAPI, APIPRIVATE, CALLBACK, and APIENTRY are all
defined). Anything not explicitly declared __stdcall, or anything
explicitly declared __cdecl, should be extern(C) instead.
More information about the Digitalmars-d-learn
mailing list