mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
enables user-custom code to work with LI and SI
This commit is contained in:
parent
2f6dbaa0ea
commit
8c39ab2659
@ -36,7 +36,7 @@ pub const LineInfo = struct {
|
||||
file_name: []const u8,
|
||||
allocator: ?*mem.Allocator,
|
||||
|
||||
fn deinit(self: LineInfo) void {
|
||||
pub fn deinit(self: LineInfo) void {
|
||||
const allocator = self.allocator orelse return;
|
||||
allocator.free(self.file_name);
|
||||
}
|
||||
@ -47,7 +47,7 @@ pub const SymbolInfo = struct {
|
||||
compile_unit_name: []const u8 = "???",
|
||||
line_info: ?LineInfo = null,
|
||||
|
||||
fn deinit(self: @This()) void {
|
||||
pub fn deinit(self: @This()) void {
|
||||
if (self.line_info) |li| {
|
||||
li.deinit();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user