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.

start

Fuzz.start
pub fn start(fuzz: *Fuzz) void

File

Code

pub fn start(fuzz: *Fuzz) void {
    const maker = fuzz.maker;
    const graph = maker.graph;
    const io = graph.io;

    fuzz.prog_node = fuzz.root_prog_node.start("Fuzzing", 0);

    if (fuzz.mode == .forever) {
        // For polling messages and sending updates to subscribers.
        fuzz.group.concurrent(io, coverageRun, .{fuzz}) catch |err|
            fatal("unable to spawn coverage task: {t}", .{err});
    }

    for (fuzz.run_steps) |run_index| {
        const run = &maker.stepByIndex(run_index).extended.run;
        assert(run.rebuilt_executable != null);
        fuzz.group.async(io, fuzzWorkerRun, .{ fuzz, run_index });
    }
}