Converting C .h Files to D Modules

bearophile bearophileHUGS at lycos.com
Tue Mar 20 18:14:52 PDT 2012


Andrej Mitrovic:

> extern(C)
> struct SomeFunctions {
>     void function(char*, size_t) funcA;
>     void function() funcB;
> }


Are you sure that works?
If that doesn't work then use this and write a bug report:

struct SomeFunctions {
     extern(C) void function(char*, size_t) funcA;
     extern(C) void function() funcB;
}

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list