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

@@ -130,12 +130,12 @@ arena_from_buffer(void *buffer, size_t size) {
return result;
}
struct Scratch_Scope {
struct Scoped_Arena {
Arena *arena;
int pos;
Scratch_Scope(Arena *arena) {
Scoped_Arena(Arena *arena) {
this->arena = arena;
this->pos = arena->len;
}
~Scratch_Scope() { this->arena->len = this->pos; }
~Scoped_Arena() { this->arena->len = this->pos; }
};