Include C headers in D code
atilanevesoncode.wordpress.com
atilanevesoncode.wordpress.com
The best solution would be to also allow directly referencing .c implementation files from D source, for separate compilation and linking with the D program. Nim does allow something like this: https://github.com/floooh/sokol-nim/blob/master/sokol/gfx.ni..., but I guess since Nim compiles to C this is much easier to achieve :)
Viva libclang!
mixin(cHeader("headerfile.h"));But then I suppose getting it working is better than getting it elegant.