Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Function

createModule

Public Function
std.Build.Step.TranslateC.createModule
pub fn createModule(translate_c: *TranslateC) *std.Build.Module

Creates a private module from the translated source to be used by the current package, but not exposed to other packages depending on this one. addModule can be used instead to create a public module.

Params

File

Build/Step/TranslateC.zig:76
76
77
78
79
80
81
82
83
pub fn createModule(translate_c: *TranslateC) *std.Build.Module {
    return setUpModule(translate_c, translate_c.step.owner.createModule(.{
        .root_source_file = translate_c.getOutput(),
        .target = translate_c.target,
        .optimize = translate_c.optimize,
        .link_libc = translate_c.link_libc,
    }));
}