summaryrefslogtreecommitdiff
path: root/context.h
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2023-03-07 13:34:18 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2023-03-07 13:34:18 -0400
commit5df9bdde16d30a8bfe520e178c5810a7163e9d6c (patch)
treea2f7ff6cacdfffb9c3e6bc9120c8458646027300 /context.h
parent09ceed4fa79d2c5179060fc21ff39453705b80e6 (diff)
THeap: Replace `heap_x{malloc,free}` with `operator {new,delete}`
Diffstat (limited to 'context.h')
-rw-r--r--context.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/context.h b/context.h
index 7da1dc5..c9a8dcd 100644
--- a/context.h
+++ b/context.h
@@ -542,10 +542,6 @@ extern char *get_sock_status_name(short code);
extern u16 to_be_uint16_t(u16 val);
extern u16 to_le_uint16_t(u16 val);
-// THeap.cpp
-extern void heap_xfree(void *ptr);
-extern void *heap_xmalloc(size_t size);
-
// TMainTask.cpp
extern void camera_stuff();
@@ -971,8 +967,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);