CARB_MALLOC
Defined in carb/Defines.h
-
CARB_MALLOC(size)
Allocates memory from the heap.
Deprecated since version 126.0: Please use carb::allocate() instead.
Warning
Memory allocated from this method must be freed within the same module that allocated it.
- Parameters
size – The number of bytes to allocate.
- Returns
A valid pointer to a memory region of
size
bytes. If an error occurs,nullptr
is returned.