mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-22 03:03:18 +00:00
Added Memory Helper macros for Legacy usage
This commit is contained in:
@@ -1278,9 +1278,10 @@ ILibExportMethod void* ILibMemory_GetExtraMemory(void *container, size_t contain
|
||||
size_t ILibMemory_GetExtraMemorySize(void* extraMemory)
|
||||
{
|
||||
if (extraMemory == NULL) { return 0; }
|
||||
return(((size_t*)((char*)extraMemory - sizeof(size_t)))[0]);
|
||||
return(ILibMemory_Legacy_GetExtraSizePtr(extraMemory)[0]);
|
||||
}
|
||||
|
||||
|
||||
ILibChain_Link* ILibChain_Link_Allocate(size_t structSize, size_t extraMemorySize)
|
||||
{
|
||||
ILibChain_Link *retVal;
|
||||
|
||||
Reference in New Issue
Block a user