From 09ceed4fa79d2c5179060fc21ff39453705b80e6 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Tue, 7 Mar 2023 12:55:12 -0400 Subject: TObject: Replace `alloc()`, and `free()` with `operator {new,delete}` --- src/pso/TObject.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/pso/TObject.cpp b/src/pso/TObject.cpp index d065518..ed56035 100644 --- a/src/pso/TObject.cpp +++ b/src/pso/TObject.cpp @@ -32,11 +32,11 @@ bool TObject::toggle_flag_9_if_flag_10_is_clear() { } } -void TObject::free(void *ptr) { +void TObject::operator delete(void *ptr) { obj_heap->heap_free(ptr); } -void *TObject::alloc(size_t size) { +void *TObject::operator new(size_t size) { return obj_heap->heap_alloc(size); } -- cgit v1.2.3-13-gbd6f