Introduce the allocator stuff again
This commit is contained in:
@@ -98,7 +98,7 @@ parse_init(Parse_Ctx *ctx, Arena *perm_allocator) {
|
||||
CORE_Static void
|
||||
begin_compilation() {
|
||||
init_ctx_time_begin = os_time();
|
||||
Parse_Ctx *ctx = arena_push_type(&pernament_arena, Parse_Ctx, AF_ZeroMemory);
|
||||
Parse_Ctx *ctx = allocate_struct(&pernament_arena, Parse_Ctx);
|
||||
parse_init(ctx, &pernament_arena);
|
||||
init_ctx_time_end = os_time();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user