@brief Set memory manager for world to be used with simulation stepping functions
The function allows to customize memory manager to be used for internal
memory allocation during simulation for a world. By default, @c dAlloc/@c dRealloc/@c dFree
based memory manager is used.
Passing @a memfuncs argument as NULL results in memory manager being
reset to default one as if the world has been just created. The content of
@a memfuncs structure is copied internally and does not need to remain valid
after the call returns.
If the world uses working memory sharing, changing memory manager
affects all the worlds linked together.
Failure result status means a memory allocation failure.
@param w The world to change memory reservation policy for.
@param memfuncs Null or a pointer to memory manager descriptor structure.
@returns 1 for success and 0 for failure.
@brief Set memory manager for world to be used with simulation stepping functions
The function allows to customize memory manager to be used for internal memory allocation during simulation for a world. By default, @c dAlloc/@c dRealloc/@c dFree based memory manager is used.
Passing @a memfuncs argument as NULL results in memory manager being reset to default one as if the world has been just created. The content of @a memfuncs structure is copied internally and does not need to remain valid after the call returns.
If the world uses working memory sharing, changing memory manager affects all the worlds linked together.
Failure result status means a memory allocation failure.
@param w The world to change memory reservation policy for. @param memfuncs Null or a pointer to memory manager descriptor structure. @returns 1 for success and 0 for failure.
@ingroup world @see dWorldUseSharedWorkingMemory