Change name Scratch_Scope to Scoped_Arena

This commit is contained in:
Krzosa Karol
2023-03-31 17:39:00 +02:00
parent 277404fe95
commit b2e8012afa
12 changed files with 33 additions and 32 deletions

View File

@@ -109,7 +109,7 @@ static void compile_file(Allocator *allocator, String filename, U32 compile_flag
printf("%f - ", total_compiler_time);
Arena *scratch = pctx->scratch;
Scratch_Scope _scope(scratch);
Scoped_Arena _scope(scratch);
F64 begin = os_time();
String_Builder builder = {scratch};
@@ -175,7 +175,7 @@ int main(int argument_count, char **arguments) {
For(args) {
if (it == "-testing"_s) {
Scratch_Scope _scope(&scratch);
Scoped_Arena _scope(&scratch);
Array<OS_File_Info> examples = os_list_dir(&scratch, &scratch, "examples"_s);
Array<OS_File_Info> tests = os_list_dir(&scratch, &scratch, "tests"_s);
For(examples) {