Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

STB

elf.STB
pub const STB = enum(u4)

File

lib/std/elf.zig:588

Code

pub const STB = enum(u4) {
    /// Local symbol
    LOCAL = 0,
    /// Global symbol
    GLOBAL = 1,
    /// Weak symbol
    WEAK = 2,
    _,

    /// Number of defined types
    pub const NUM = @typeInfo(STB).@"enum".field_names.len;

    /// Start of OS-specific
    pub const LOOS: STB = @fromBackingInt(@intCast(10));
    /// End of OS-specific
    pub const HIOS: STB = @fromBackingInt(@intCast(12));

    /// Unique symbol
    pub const GNU_UNIQUE: STB = @fromBackingInt(@intCast(@backingInt(LOOS) + 0));

    /// Start of processor-specific
    pub const LOPROC: STB = @fromBackingInt(@intCast(13));
    /// End of processor-specific
    pub const HIPROC: STB = @fromBackingInt(@intCast(15));

    pub const MIPS_SPLIT_COMMON: STB = @fromBackingInt(@intCast(@backingInt(LOPROC) + 0));
}