User defined wrappers for the C memory management API.
◆ GTS_ALIGNED_FREE
#define GTS_ALIGNED_FREE |
( |
|
ptr | ) |
#error "Replace with custom definition" |
Override aligned_free.
- Parameters
-
ptr | A pointer to the memory to free that was allocated with GTS_ALIGNED_MALLOC. |
◆ GTS_ALIGNED_MALLOC
#define GTS_ALIGNED_MALLOC |
( |
|
size, |
|
|
|
alignment |
|
) |
| #error "Replace with custom definition" |
Override aligned_malloc.
- Parameters
-
size | The size of the memory to allocate. |
alignment | The address alignment of the allocated memory. |
- Returns
- A pointer to the memory or nullptr on fail.
◆ GTS_FREE
#define GTS_FREE |
( |
|
ptr | ) |
#error "Replace with custom definition" |
Override free.
- Parameters
-
ptr | A pointer to the memory to free that was allocated with GTS_MALLOC. |
◆ GTS_MALLOC
#define GTS_MALLOC |
( |
|
size | ) |
#error "Replace with custom definition" |
Override malloc.
- Parameters
-
size | The size of the memory to allocate. |
- Returns
- A pointer to the memory or nullptr on fail.