Function create [src]
Prototype
pub fn create(owner: *std.Build, error_msg: []const u8) *Fail
Parameters
owner: *std.Build
error_msg: []const u8
Source
pub fn create(owner: *std.Build, error_msg: []const u8) *Fail {
const fail = owner.allocator.create(Fail) catch @panic("OOM");
fail.* = .{
.step = Step.init(.{
.id = base_id,
.name = "fail",
.owner = owner,
.makeFn = make,
}),
.error_msg = owner.dupe(error_msg),
};
return fail;
}