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.

addToHash

LibCInstallation.addToHash
pub fn addToHash(opt_lci: ?*const LibCInstallation, hh: *Cache.HashHelper, abi: std.Target.Abi) void

File

lib/std/zig/LibCInstallation.zig:1043

Code

pub fn addToHash(opt_lci: ?*const LibCInstallation, hh: *Cache.HashHelper, abi: std.Target.Abi) void {
    const lci = opt_lci orelse return hh.add(false);
    hh.add(true);
    hh.addOptionalBytes(lci.crt_dir);
    switch (abi) {
        .msvc, .itanium => {
            hh.addOptionalBytes(lci.msvc_lib_dir);
            hh.addOptionalBytes(lci.kernel32_lib_dir);
        },
        else => {},
    }
}