11 #if defined(LUG_SYSTEM_LINUX) 12 return aligned_alloc(alignment + offset, size);
13 #elif defined(LUG_SYSTEM_ANDROID) 16 if (!posix_memalign(&ret, alignment + offset, size)) {
21 #elif defined(LUG_SYSTEM_WINDOWS) 22 return _aligned_malloc(alignment + offset, size);
31 LUG_ASSERT(
false,
"Basic allocator doesn't implement reset method");
35 #if defined(LUG_SYSTEM_WINDOWS) 38 return malloc_usable_size(ptr);
#define LUG_ASSERT(assertion, message)
size_t getSize(void *ptr) const
void * allocate(size_t size, size_t alignment, size_t offset) const
void free(void *ptr) const