This commit is contained in:
Branimir Karadžić
2015-02-08 10:25:53 -08:00
parent 65bb50f84a
commit 6d2d04cad5
4 changed files with 22 additions and 15 deletions

View File

@@ -451,6 +451,19 @@ namespace entry
return &s_allocator;
}
void* TinyStlAllocator::static_allocate(size_t _bytes)
{
return BX_ALLOC(getAllocator(), _bytes);
}
void TinyStlAllocator::static_deallocate(void* _ptr, size_t /*_bytes*/)
{
if (NULL != _ptr)
{
BX_FREE(getAllocator(), _ptr);
}
}
} // namespace entry
extern "C" bool entry_process_events(uint32_t* _width, uint32_t* _height, uint32_t* _debug, uint32_t* _reset)