set_memory_functions (Memory Custom Handlers)


Synopsis

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

Description

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.