diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2023-03-07 12:55:12 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2023-03-07 12:55:12 -0400 |
commit | 09ceed4fa79d2c5179060fc21ff39453705b80e6 (patch) | |
tree | 4fe95eef14d244d7e72b27c936d206d7dd189336 /src | |
parent | f43a121411e5b956c54aa784d7a252cee5469b1d (diff) |
TObject: Replace `alloc()`, and `free()` with `operator {new,delete}`
Diffstat (limited to 'src')
-rw-r--r-- | src/pso/TObject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |