summaryrefslogtreecommitdiff
path: root/src/pso
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2023-02-10 13:27:50 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2023-02-10 13:27:50 -0400
commitcf8972948066c859a9024ffe81afa95156972c53 (patch)
tree4ee33b08c65f074390f920fa7624ccf395c59666 /src/pso
parent3854713b26eddd08bacd51e6c6b85bba4d9a7c2d (diff)
TObject: Implement, and match `alloc()`, and `free()`
Diffstat (limited to 'src/pso')
-rw-r--r--src/pso/TObject.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/pso/TObject.cpp b/src/pso/TObject.cpp
index 1d87c4b..3fa37d2 100644
--- a/src/pso/TObject.cpp
+++ b/src/pso/TObject.cpp
@@ -1,3 +1,4 @@
+#include "pso/THeap.h"
#include "pso/TMainTask.h"
#include "pso/TObject.h"
#define MATCHING
@@ -32,11 +33,11 @@ bool TObject::toggle_flag_9_if_flag_10_is_clear() {
}
void TObject::free(void *ptr) {
-
+ obj_heap->heap_free(ptr);
}
-void *TObject::alloc(unsigned long size) {
- return NULL;
+void *TObject::alloc(size_t size) {
+ return obj_heap->heap_alloc(size);
}