Converting C .h Files to D Modules

Andrej Mitrovic andrej.mitrovich at gmail.com
Tue Mar 20 18:39:08 PDT 2012


On 3/21/12, bearophile <bearophileHUGS at lycos.com> wrote:
> Are you sure that works?

It's easy to test:

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

void main()
{
    writeln(typeof(SomeFunctions.funcA).stringof);
}


More information about the Digitalmars-d-learn mailing list