From 5df9bdde16d30a8bfe520e178c5810a7163e9d6c Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Tue, 7 Mar 2023 13:34:18 -0400 Subject: THeap: Replace `heap_x{malloc,free}` with `operator {new,delete}` --- include/pso/THeap.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/pso/THeap.h b/include/pso/THeap.h index 6a94dee..1359369 100644 --- a/include/pso/THeap.h +++ b/include/pso/THeap.h @@ -6,9 +6,6 @@ #include #include -void heap_xfree(void *ptr); -void *heap_xmalloc(size_t size); - extern THeap *obj_heap; extern THeap *alt_heap; @@ -26,8 +23,8 @@ public: public: THeap(size_t size, int align); ~THeap(); - void *operator new(size_t size) { return heap_xmalloc(size); }; - void operator delete(void *ptr) { heap_xfree(ptr); }; + void *operator new(size_t size); + void operator delete(void *ptr); void *heap_alloc(size_t size); void *heap_zalloc(size_t size); void heap_free(void *ptr); -- cgit v1.2.3-13-gbd6f