summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2023-02-05 15:53:52 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2023-02-05 15:53:52 -0400
commit51b344f8b673157d42c500aef39fbbc57e98850f (patch)
tree3b26ed7b38aeaec6b8db43804945e560460b28c1
parentde60c27a2c10e1ba341b5ca5069f76334b905ad1 (diff)
THeap: Add global heaps
-rw-r--r--include/pso/THeap.h3
-rw-r--r--src/pso/THeap.cpp3
2 files changed, 6 insertions, 0 deletions
diff --git a/include/pso/THeap.h b/include/pso/THeap.h
index f906dd0..b248bd7 100644
--- a/include/pso/THeap.h
+++ b/include/pso/THeap.h
@@ -9,6 +9,9 @@
void *heap_xfree(void *ptr);
void *heap_xmalloc(size_t size);
+extern THeap *obj_heap;
+extern THeap *alt_heap;
+
class THeap {
public:
u8 *heap;
diff --git a/src/pso/THeap.cpp b/src/pso/THeap.cpp
index 2ed961a..3967f95 100644
--- a/src/pso/THeap.cpp
+++ b/src/pso/THeap.cpp
@@ -8,6 +8,9 @@
static const int heap_offset = 8;
+THeap *obj_heap;
+THeap *alt_heap;
+
void xfree(void *ptr) {
}