View source code
Display the source code in dmd/mars.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

Function dmd.mars.createModule

Creates the module based on the file provided

Module createModule (
  const(char)* file,
  ref dmd.root.array.Array!(const(char)*) libmodules
);

The file is dispatched in one of the various arrays (global.params.{ddocfiles,dllfiles,jsonfiles,etc...}) according to its extension. If it is a binary file, it is added to libmodules.

Parameters

NameDescription
file File name to dispatch
libmodules Array to which binaries (shared/static libs and object files) will be appended

Returns

A D module

Authors

Walter Bright

License

Boost License 1.0