enumstd.zig.llvm.Builder.Preemption[src]

Fields

dso_preemptable
dso_local
implicit_dso_local

Functions

Functionformat[src]

pub fn format( self: Preemption, comptime _: []const u8, _: std.fmt.FormatOptions, writer: anytype, ) @TypeOf(writer).Error!void

Parameters

_: []const u8

Source Code

Source code
pub fn format(
    self: Preemption,
    comptime _: []const u8,
    _: std.fmt.FormatOptions,
    writer: anytype,
) @TypeOf(writer).Error!void {
    if (self == .dso_local) try writer.print(" {s}", .{@tagName(self)});
}

Source Code

Source code
pub const Preemption = enum {
    dso_preemptable,
    dso_local,
    implicit_dso_local,

    pub fn format(
        self: Preemption,
        comptime _: []const u8,
        _: std.fmt.FormatOptions,
        writer: anytype,
    ) @TypeOf(writer).Error!void {
        if (self == .dso_local) try writer.print(" {s}", .{@tagName(self)});
    }
}