authorgravatar for isaac.yonemoto@gmail.comIsaac Yonemoto <isaac.yonemoto@gmail.com> 2021-06-15 07:57:48-05:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2021-08-20 12:10:45+03:00
log8c39ab2659a2bdc741c0ce51014977fb9bebe2ab
treed57e45eb73408387acea431b5f3ef96b5c62086f
parent2f6dbaa0ea7307dd6806082b07266a43db5da950

enables user-custom code to work with LI and SI


1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/debug.zig+2-2
...@@ -36,7 +36,7 @@ pub const LineInfo = struct {...@@ -36,7 +36,7 @@ pub const LineInfo = struct {
36 file_name: []const u8,36 file_name: []const u8,
37 allocator: ?*mem.Allocator,37 allocator: ?*mem.Allocator,
3838
39 fn deinit(self: LineInfo) void {39 pub fn deinit(self: LineInfo) void {
40 const allocator = self.allocator orelse return;40 const allocator = self.allocator orelse return;
41 allocator.free(self.file_name);41 allocator.free(self.file_name);
42 }42 }
...@@ -47,7 +47,7 @@ pub const SymbolInfo = struct {...@@ -47,7 +47,7 @@ pub const SymbolInfo = struct {
47 compile_unit_name: []const u8 = "???",47 compile_unit_name: []const u8 = "???",
48 line_info: ?LineInfo = null,48 line_info: ?LineInfo = null,
4949
50 fn deinit(self: @This()) void {50 pub fn deinit(self: @This()) void {
51 if (self.line_info) |li| {51 if (self.line_info) |li| {
52 li.deinit();52 li.deinit();
53 }53 }