Zen API
|
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.
object | Memory allocator. |
function | Callback function. |
receiver | Callback receiver. |