Easy way for FFI

Maximilian Naderer maximilian.wallinger at outlook.com
Sun Sep 22 21:32:31 UTC 2024


Hello,
so what are my / our best options to create an automatic C 
foreign function interface.

I would like to create such interface / header file from a D 
module with public functions, structs which are declared with 
extern(C)

D code

module leo

extern(C) void test() { }

Expectation:

// header file
void leo_test(void);



More information about the Digitalmars-d-learn mailing list