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.

gexf2.zig

File

Code

const symbol = @import("../compiler_rt.zig").symbol;
const comparef = @import("./comparef.zig");

comptime {
    symbol(&__gexf2, "__gexf2");
    symbol(&__gtxf2, "__gtxf2");
}

fn __gexf2(a: f80, b: f80) callconv(.c) i32 {
    return @backingInt(comparef.cmp_f80(comparef.GE, a, b));
}

fn __gtxf2(a: f80, b: f80) callconv(.c) i32 {
    return __gexf2(a, b);
}