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. Private Function

addEnvironMap

Private Function
std.Build.Serialize.addEnvironMap
fn addEnvironMap(s: *Serialize, opt_map: ?*std.process.Environ.Map) !?Configuration.EnvironMap.Index

Params

File

Build/Serialize.zig:855
855
856
857
858
859
860
861
862
fn addEnvironMap(s: *Serialize, opt_map: ?*std.process.Environ.Map) !?Configuration.EnvironMap.Index {
    const wc = s.wc;
    const map = opt_map orelse return null;
    return try wc.addDeduped(Configuration.EnvironMap, .{
        .keys = try wc.addStringList(map.array_hash_map.keys()),
        .values = try wc.addStringList(map.array_hash_map.values()),
    });
}