On Thursday, 3 December 2020 at 01:19:05 UTC, bachmeier wrote:
On Thursday, 3 December 2020 at 00:30:06 UTC, Kyle Ingraham
wrote:
What did I do wrong in constructing the bindings? If it helps
the library provides a function called EdsRelease for
cleaning-up allocated objects. Is the management of pointers
between D and C the issue? Please forgive me if I've mangled
that concept.
Not an answer to your question, but the "idiomatic" approach is
to not write bindings yourself.
dstep generates bindings:
https://github.com/jacob-carlborg/dstep
dpp lets you include C header files directly:
https://github.com/atilaneves/dpp
Thanks for the suggestions here. I had no idea that these tools
existed.
Now that I've gotten my feet wet with doing it manually it'll be
interesting to compare results with those from automation. I'm
all for it they can take some of the heavy lifting away.