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.

fuzzSelectSli

This function is not used directly by main.js, but a reference to it is emitted by SourceLocationIndex.sourceLocationLinkHtml.

fuzz.fuzzSelectSli
export fn fuzzSelectSli(sli: SourceLocationIndex) void

File

lib/build-web/fuzz.zig:358

Code

export fn fuzzSelectSli(sli: SourceLocationIndex) void {
    if (!sli.haveCoverage()) return;
    selected_source_location = sli;
    updateEntryPoints() catch @panic("out of memory"); // highlights the selected one green
    updateSource() catch @panic("out of memory");
    updateCoverage() catch @panic("out of memory");
}