aboutsummaryrefslogtreecommitdiff
path: root/src/common_memory.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-01-23 12:29:59 +0000
committergingerBill <bill@gingerbill.org>2023-01-23 12:29:59 +0000
commitc482432966d3ea61544bd55a598907f3519ef29d (patch)
treee9e7af6defdd2958247d3e5c691c521d27d47553 /src/common_memory.cpp
parent55176e52fcb977268625cfc7f7afaaaa6bf5d06f (diff)
Disable arena guards
Diffstat (limited to 'src/common_memory.cpp')
-rw-r--r--src/common_memory.cpp8
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}