mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
Minimal build of the refstrings in the literal structure
This commit is contained in:
@@ -11,7 +11,8 @@
|
||||
#define FREE_ARRAY(type, pointer, oldCount) reallocate((type*)pointer, sizeof(type) * (oldCount), 0)
|
||||
|
||||
//implementation details
|
||||
typedef void* (*AllocatorFn)(void* pointer, size_t oldSize, size_t newSize);
|
||||
TOY_API void setAllocator(AllocatorFn);
|
||||
|
||||
void* reallocate(void* pointer, size_t oldSize, size_t newSize);
|
||||
|
||||
//assign the memory allocator
|
||||
typedef void* (*MemoryAllocatorFn)(void* pointer, size_t oldSize, size_t newSize);
|
||||
TOY_API void setMemoryAllocator(MemoryAllocatorFn);
|
||||
|
||||
Reference in New Issue
Block a user