set_memory_functions (Memory Custom Handlers)


void archr_set_memory_functions(void *(*)(size_t), void *(*)(void *, size_t, size_t), void(*)(void *, size_t));
namespace archr {
void set_memory_functions(void *(*)(size_t),
                          void *(*)(void*, size_t),
                          void (*)(void*));


Replace the current allocation functions from the arguments. These functions will be used for all memory allocation done by Arch-R. Malloc_func, realloc_func and free_func must be pointers to functions that have the same signatures and behaviors as the standard C functions malloc, realloc and free respectively.