Change name Scratch_Scope to Scoped_Arena
This commit is contained in:
@@ -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; }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user