3 ms·
Ah, so basically you just have to create somehow a header file that D can use? I've looked into the `deimos` repos and there's a bunch of them, what I see is, C
by hnedeotes 5y ago
Ah, so basically you just have to create somehow a header file that D can use? I've looked into the `deimos` repos and there's a bunch of them, what I see is, C header files in a folder, then a folder with one or several d files (not .di), that set up somethings and have a
extern (C) {
...
}
block declaring types and funcs from the C header file. Then when building you just link the original required C libs? It seems nice.