turn on gpa
This commit is contained in:
parent
c2834f8254
commit
7097334201
1 changed files with 6 additions and 1 deletions
|
@ -231,7 +231,12 @@ pub fn doRepl(allocator: *std.mem.Allocator, args_it: anytype) !void {
|
|||
}
|
||||
|
||||
pub fn main() !void {
|
||||
const allocator = std.heap.page_allocator;
|
||||
// const allocator = std.heap.page_allocator;
|
||||
var allocator_instance = std.heap.GeneralPurposeAllocator(.{}){};
|
||||
defer {
|
||||
_ = allocator_instance.deinit();
|
||||
}
|
||||
const allocator = &allocator_instance.allocator;
|
||||
|
||||
var lang = langs.Lang.init(allocator);
|
||||
defer lang.deinit();
|
||||
|
|
Loading…
Reference in a new issue