pub fn unwrap(this: @This(), c: *const Configuration) ?std.Target.Query.OsVersion this: @This()c: *const Configuration2238
2239
2240
2241
2242
2243
2244
2245 pub fn unwrap(this: @This(), c: *const Configuration) ?std.Target.Query.OsVersion {
return switch (this) {
.none => .none,
.semver => |sv| .{ .semver = std.SemanticVersion.parse(sv.slice(c)) catch unreachable },
.windows => |wv| .{ .windows = wv },
.default => null,
};
}