DoxigAlpha

create

Function parameters

Parameters

#
owner:*std.Build
source:std.Build.LazyPath

Type definitions in this namespace

Types

#

Functions in this namespace

Functions

#

= .check_file

Values

#
base_id
= .check_file

Source

Implementation

#
pub fn create(
    owner: *std.Build,
    source: std.Build.LazyPath,
    options: Options,
) *CheckFile {
    const check_file = owner.allocator.create(CheckFile) catch @panic("OOM");
    check_file.* = .{
        .step = Step.init(.{
            .id = base_id,
            .name = "CheckFile",
            .owner = owner,
            .makeFn = make,
        }),
        .source = source.dupe(owner),
        .expected_matches = owner.dupeStrings(options.expected_matches),
        .expected_exact = options.expected_exact,
    };
    check_file.source.addStepDependencies(&check_file.step);
    return check_file;
}