Compiling with MSVC, Using raylib! Cleanup
This commit is contained in:
@@ -2,9 +2,9 @@ constexpr size_t ARENA_BLOCK_SIZE = mib(4);
|
||||
constexpr size_t ARENA_ALIGNMENT = 8;
|
||||
|
||||
struct CRT_Heap : Allocator {};
|
||||
static void *crt_allocate(Allocator *allocator, size_t size) { return malloc(size); }
|
||||
static void crt_deallocate(Allocator *allocator, void *p) { return free(p); }
|
||||
static CRT_Heap make_crt_heap() {
|
||||
CORE_Static void *crt_allocate(Allocator *allocator, size_t size) { return malloc(size); }
|
||||
CORE_Static void crt_deallocate(Allocator *allocator, void *p) { return free(p); }
|
||||
CORE_Static CRT_Heap make_crt_heap() {
|
||||
CRT_Heap result = {};
|
||||
result.allocate = crt_allocate;
|
||||
result.deallocate = crt_deallocate;
|
||||
|
||||
Reference in New Issue
Block a user