summaryrefslogtreecommitdiff
path: root/core/fxcrt/fx_basic_memmgr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcrt/fx_basic_memmgr.cpp')
-rw-r--r--core/fxcrt/fx_basic_memmgr.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/fxcrt/fx_basic_memmgr.cpp b/core/fxcrt/fx_basic_memmgr.cpp
index f3aaa3678d..75bc2bc1f1 100644
--- a/core/fxcrt/fx_basic_memmgr.cpp
+++ b/core/fxcrt/fx_basic_memmgr.cpp
@@ -24,9 +24,15 @@ void FXMEM_InitalizePartitionAlloc() {
void* FXMEM_DefaultAlloc(size_t byte_size, int flags) {
return (void*)malloc(byte_size);
}
+
+void* FXMEM_DefaultCalloc(size_t num_elems, size_t byte_size) {
+ return calloc(num_elems, byte_size);
+}
+
void* FXMEM_DefaultRealloc(void* pointer, size_t new_size, int flags) {
return realloc(pointer, new_size);
}
+
void FXMEM_DefaultFree(void* pointer, int flags) {
free(pointer);
}