This module contains the implementation of the C++ header generation available through the command line switch -Hc.


Walter Bright

Source: dtoh.d

  • Declaration

    void genCppHdrFiles(ref Modules ms);

    Generates a C++ header containing bindings for all extern(C[++]) declarations found in the supplied modules.


    Modules ms

    the modules


    • the header is written to <global.params.cxxhdrdir>/<global.params.cxxhdrfile> or stdout if no explicit file was specified
    • bindings conform to the C++ standard defined in global.params.cplusplus
    • ignored declarations are mentioned in a comment if global.params.doCxxHdrGeneration is set to CxxHeaderMode.verbose