docs
Loading...
Searching...
No Matches
Allocator.h

Classes

struct  ULAllocator
 User-defined allocator interface. More...

Variables

ULAllocator ulAllocator
 Get the allocator interface object for the library.

Variable Documentation

◆ ulAllocator

ULAllocator ulAllocator
extern

Get the allocator interface object for the library.

Precondition
This API is only available in the Pro edition when the UL_ENABLE_ALLOCATOR_OVERRIDE build option is enabled.

The C functions set in this object will be used for allocating memory inside the library when the UL_ENABLE_ALLOCATOR_OVERRIDE build option is enabled.

Default functions are already set for all of these but you can override them with your own.

Platform specific notes:

  • Windows: The default functions use HeapAlloc / HeapReAlloc / HeapFree.

Go to the source code of this file.