Add SCOPED_TEMPORARY_BLOCK for temporary allocations within a block

This commit is contained in:
gingerBill
2020-11-15 18:45:40 +00:00
parent 30d922b059
commit 17ec3e72a6
12 changed files with 159 additions and 118 deletions
+1
View File
@@ -1646,6 +1646,7 @@ int main(int arg_count, char const **arg_ptr) {
arena_init(&permanent_arena, heap_allocator());
arena_init(&temporary_arena, heap_allocator());
arena_init(&global_ast_arena, heap_allocator());
permanent_arena.use_mutex = true;
init_string_buffer_memory();
init_string_interner();