Zen API

- Home
- Topics
- Types
- Files

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

  object | Memory allocator.
  function | Callback function.
  receiver | Callback receiver.

Returns
  Operation status.