diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2023-03-07 13:34:18 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2023-03-07 13:34:18 -0400 |
commit | 5df9bdde16d30a8bfe520e178c5810a7163e9d6c (patch) | |
tree | a2f7ff6cacdfffb9c3e6bc9120c8458646027300 /include/pso | |
parent | 09ceed4fa79d2c5179060fc21ff39453705b80e6 (diff) |
THeap: Replace `heap_x{malloc,free}` with `operator {new,delete}`
Diffstat (limited to 'include/pso')
-rw-r--r-- | include/pso/THeap.h | 7 |
1 files changed, 2 insertions, 5 deletions
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 <global_types.h> #include <stdlib.h> -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); |