diff options
| author | gingerBill <bill@gingerbill.org> | 2023-01-23 12:29:59 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-01-23 12:29:59 +0000 |
| commit | c482432966d3ea61544bd55a598907f3519ef29d (patch) | |
| tree | e9e7af6defdd2958247d3e5c691c521d27d47553 /src | |
| parent | 55176e52fcb977268625cfc7f7afaaaa6bf5d06f (diff) | |
Disable arena guards
Diffstat (limited to 'src')
| -rw-r--r-- | src/common_memory.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common_memory.cpp b/src/common_memory.cpp index 07c3ba48f..d888b7f06 100644 --- a/src/common_memory.cpp +++ b/src/common_memory.cpp @@ -363,11 +363,11 @@ gb_internal gbAllocator temporary_allocator() { return arena_allocator(&temporary_arena); } -// #define TEMPORARY_ALLOCATOR_GUARD() -// #define PERMANENT_ALLOCATOR_GUARD() +#define TEMPORARY_ALLOCATOR_GUARD() +#define PERMANENT_ALLOCATOR_GUARD() -#define TEMPORARY_ALLOCATOR_GUARD() ArenaTempGuard GB_DEFER_3(_arena_guard_){&temporary_arena} -#define PERMANENT_ALLOCATOR_GUARD() ArenaTempGuard GB_DEFER_3(_arena_guard_){&permanent_arena} +// #define TEMPORARY_ALLOCATOR_GUARD() ArenaTempGuard GB_DEFER_3(_arena_guard_){&temporary_arena} +// #define PERMANENT_ALLOCATOR_GUARD() ArenaTempGuard GB_DEFER_3(_arena_guard_){&permanent_arena} |