gobj_get_allocators()

gobj_get_allocators()#

Retrieves the current memory allocation function pointers used by the system.

Prototype

void gobj_get_allocators(
    sys_malloc_fn_t *malloc_func,
    sys_realloc_fn_t *realloc_func,
    sys_calloc_fn_t *calloc_func,
    sys_free_fn_t *free_func
);

Parameters

Key

Type

Description

malloc_func

sys_malloc_fn_t *

Pointer to store the current malloc function.

realloc_func

sys_realloc_fn_t *

Pointer to store the current realloc function.

calloc_func

sys_calloc_fn_t *

Pointer to store the current calloc function.

free_func

sys_free_fn_t *

Pointer to store the current free function.


Return Value

None.

Notes

This function allows retrieving the function pointers for memory allocation routines, which can be useful for debugging or replacing the default memory management functions.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples