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.

CSourceFile

Configuration.CSourceFile
pub const CSourceFile = struct

File

lib/std/Build/Configuration.zig:2068

Code

pub const CSourceFile = struct {
    flags: Flags,
    file: LazyPath.Index,
    args: Storage.FlagList(.flags, .args_len, String),

    pub const Index = enum(u32) {
        _,

        pub fn get(this: @This(), c: *const Configuration) CSourceFile {
            return extraData(c, CSourceFile, @backingInt(this));
        }
    };

    pub const Flags = packed struct(u32) {
        /// C compiler CLI flags.
        args_len: u29,
        lang: OptionalCSourceLanguage,
    };
}