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.

addValues

ConfigHeader.addValues
pub fn addValues(config_header: *ConfigHeader, values: anytype) void

File

lib/std/Build/Step/ConfigHeader.zig:170

Code

pub fn addValues(config_header: *ConfigHeader, values: anytype) void {
    const info = @typeInfo(@TypeOf(values)).@"struct";
    inline for (info.field_names, info.field_types) |field_name, field_type| {
        addValue(config_header, field_name, field_type, @field(values, field_name));
    }
}