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.

logBadSource

parser_fuzz.logBadSource
fn logBadSource(source: []const u8, ast: std.zig.Ast) void

File

lib/std/zig/parser_fuzz.zig:180

Code

fn logBadSource(source: []const u8, ast: std.zig.Ast) void {
    @disableInstrumentation();
    var buf: [256]u8 = undefined;
    const ls = std.debug.lockStderr(&buf);
    defer std.debug.unlockStderr();
    logBadSourceInner(source, ls.terminal(), ast) catch {};
}