Zig 0.17.0-dev (Split by item)

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 library itself.

moduleNeedsCliArg

Compile.moduleNeedsCliArg
fn moduleNeedsCliArg(mod: *const Configuration.Module, conf: *const Configuration) bool

File

lib/compiler/Maker/Step/Compile.zig:1104

Code

fn moduleNeedsCliArg(mod: *const Configuration.Module, conf: *const Configuration) bool {
    return for (0..mod.link_objects.len) |i| switch (mod.link_objects.tag(conf.extra, i)) {
        .c_source_file, .c_source_files, .assembly_file, .win32_resource_file => break true,
        else => continue,
    } else false;
}