Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kDebugAlloc_SetAllocListener ( kDebugAlloc  object,
kCallbackFx  function,
kPointer  receiver 
)

Registers a user-defined function that is called whenever a memory allocation occurs.

The args parameter of the callback will receive a pointer to a kDebugAllocation structure representing the memory allocation.

Parameters
objectMemory allocator.
functionCallback function.
receiverCallback receiver.
Returns
Operation status.