enables user-custom code to work with LI and SI

This commit is contained in:
Isaac Yonemoto 2021-06-15 07:57:48 -05:00 committed by Veikka Tuominen
parent 2f6dbaa0ea
commit 8c39ab2659

View File

@ -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();
}