zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 8c39ab2659a2bdc741c0ce51014977fb9bebe2ab (tree)
parent 2f6dbaa0ea7307dd6806082b07266a43db5da950
Author: Isaac Yonemoto <isaac.yonemoto@gmail.com>
Date:   Tue, 15 Jun 2021 07:57:48 -0500

enables user-custom code to work with LI and SI

Diffstat:
Mlib/std/debug.zig | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/std/debug.zig b/lib/std/debug.zig @@ -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(); }