Fix compilation fail when DEBUG_MEM is set (#677)

This commit is contained in:
smallmodel 2025-02-24 13:38:33 +01:00 committed by GitHub
parent 01381ed084
commit 08d0a378f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 4 deletions

View file

@ -98,6 +98,18 @@ void LightClass::operator delete(void *ptr)
Z_Free(p);
# endif
}
#else
void *LightClass::operator new(size_t s)
{
return ::operator new(s);
}
void LightClass::operator delete(void *ptr)
{
::operator delete(ptr);
}
#endif
void* LightClass::operator new(size_t size, void* placement)