std › Build › Step › Fail › createcreateFunction parametersParameters#owner:*std.Builderror_msg:[]const u8Functions in this namespaceFunctions#create= .failValues#base_id= .failSourceImplementation#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; }
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; }