DoxigAlpha

versionRange

Provides a tagged union. Target does not store the tag because it is redundant with the OS tag; this function abstracts that part away.

Function parameters

Parameters

#

Type definitions in this namespace

Types

#

Functions in this namespace

Functions

#
requiresLibC
Does this target require linking libc? This may be the case if the target has an unstable
cCharSignedness
Default signedness of `char` for the native C compiler for this target

Source

Implementation

#
pub inline fn versionRange(os: Os) TaggedVersionRange {
    return switch (os.tag.versionRangeTag()) {
        .none => .{ .none = {} },
        .semver => .{ .semver = os.version_range.semver },
        .hurd => .{ .hurd = os.version_range.hurd },
        .linux => .{ .linux = os.version_range.linux },
        .windows => .{ .windows = os.version_range.windows },
    };
}