structstd.debug.Dwarf.CompileUnit.SrcLocCache.LineEntry[src]

Fields

line: u32
column: u32
file: u32

Offset by 1 depending on whether Dwarf version is >= 5.

Values

Constantinvalid[src]

Source Code

Source code
pub const invalid: LineEntry = .{
    .line = undefined,
    .column = undefined,
    .file = std.math.maxInt(u32),
}

Functions

FunctionisInvalid[src]

pub fn isInvalid(le: LineEntry) bool

Parameters

Source Code

Source code
pub fn isInvalid(le: LineEntry) bool {
    return le.file == invalid.file;
}

Source Code

Source code
pub const LineEntry = struct {
    line: u32,
    column: u32,
    /// Offset by 1 depending on whether Dwarf version is >= 5.
    file: u32,

    pub const invalid: LineEntry = .{
        .line = undefined,
        .column = undefined,
        .file = std.math.maxInt(u32),
    };

    pub fn isInvalid(le: LineEntry) bool {
        return le.file == invalid.file;
    }
}