turn on gpa

This commit is contained in:
Luna 2020-08-18 21:00:16 -03:00
parent c2834f8254
commit 7097334201

View file

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