aboutsummaryrefslogtreecommitdiff
path: root/src/common_memory.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-01-12 01:09:36 +0000
committergingerBill <bill@gingerbill.org>2023-01-12 01:09:36 +0000
commit9428f792ed598485add6aaf110fed56a9a63b540 (patch)
treefa95be0b7a38c8a27f253f2db09450d113017525 /src/common_memory.cpp
parent520ff731de908f63c8f5fe21ea058b8590d4285d (diff)
Comment out allocator guards for the time being
Diffstat (limited to 'src/common_memory.cpp')
-rw-r--r--src/common_memory.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/common_memory.cpp b/src/common_memory.cpp
index c7382d6ff..7d5d1f27a 100644
--- a/src/common_memory.cpp
+++ b/src/common_memory.cpp
@@ -359,8 +359,11 @@ gb_internal gbAllocator temporary_allocator() {
return arena_allocator(&temporary_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}
+#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}