On Friday, 29 July 2016 at 12:20:17 UTC, Mike Parker wrote:

Though, I should add the caveat that you need to ensure the definition of the C function does not specify any parameters. AFAIK, this is legal:

// foo.h
void func();

// foo.c
void func(int a, int b) { ... }

In which case you would want to include the parameters in your binding.

Thanks, good to know.

Reply via email to