ref: 9e0d2d23d3e0819d6192347fa80d473b83a74ff8
parent: d8826b0dbbb783d951ca4155cec2bf5c22038672
parent: faa16235233e07de72f1dd38630ab358bc8141da
author: Kevin Lenzo <66268906+lenzo-duo@users.noreply.github.com>
date: Fri Aug 14 14:50:33 EDT 2020
Merge pull request #18 from electronicarts/master Add method to override memory operations for an application
--- a/src/utils/cst_alloc.c
+++ b/src/utils/cst_alloc.c
@@ -64,6 +64,8 @@
#endif
#endif
+#ifndef CST_USER_MALLOC /* Define to override cst_safe_alloc, cst_safe_calloc, cst_safe_realloc, cst_free */
+
void *cst_safe_alloc(int size)
{
/* returns pointer to memory all set 0 */
@@ -185,6 +187,8 @@
#endif
}
}
+
+#endif
#ifdef CST_DEBUG_MALLOC_TRACE