1
0
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:
Bryan Roe
2022-07-08 12:03:24 -07:00
parent c97e83193c
commit 9db6752aaa
2 changed files with 6 additions and 1 deletions

View File

@@ -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;