You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
318 B

#include "no_alloc.hpp"
void* malloc(std::size_t size)
{
return heap.allocate(size);
}
void free(void* ptr, std::size_t size)
{
heap.deallocate((std::uint8_t*)ptr, size);
}
void* operator new(std::size_t size)
{
return malloc(size);
}
void operator delete(void* ptr, unsigned __int64 size)
{
free(ptr, size);
}