Generating struct members from c structs
Simen Kjærås
simen.kjaras at gmail.com
Wed Jul 1 07:59:43 UTC 2020
On Wednesday, 1 July 2020 at 07:26:44 UTC, Anthony wrote:
> When doing interop with a c library, is there a way to
> automatically generate the fields that are needed for a struct?
[snip]
> Is there an easier way though?
Dstep is probably what you're looking for:
https://github.com/jacob-carlborg/dstep
It eats C header files and creates appropriate D files from them.
--
Simen
More information about the Digitalmars-d-learn
mailing list