Generating C Headers From D Code

Jack Stouffer jack at jackstouffer.com
Thu Aug 5 16:28:35 UTC 2021


I need to generate plain C99 .h files from a D module's extern(C) 
declarations, so that I can link a DMD generated .o file with a C 
code base. Are there any automated tools which do this?

I know the compiler has C++ header generation, and there's tons 
of tools which exist for importing C headers into D code. I'm not 
aware of anything which goes the other direction. Google wasn't 
much help either.


More information about the Digitalmars-d-learn mailing list