Fixing compile issues

This commit is contained in:
Krzosa Karol
2023-12-31 17:02:22 +01:00
parent d8860c725e
commit 14f10cc836
2 changed files with 7 additions and 8 deletions

4
core.h
View File

@@ -15,14 +15,14 @@
#ifdef __cplusplus
#include "defer.hpp"
#define TABLE_ASSERT IO_Assert
#define TABLE_ALLOCATOR_TYPE M_Allocator
#define TABLE_Allocator M_Allocator
#define TABLE_ALLOCATE(allocator, size) M_Alloc(allocator, size)
#define TABLE_DEALLOCATE(allocator, p) M_Dealloc(allocator, p)
#define TABLE_SET_DEFAULT_ALLOCATOR \
if (!allocator.p) allocator = M_GetSystemAllocator();
#include "table.hpp"
#define ARRAY_ASSERT IO_Assert
#define ARRAY_ALLOCATOR_TYPE M_Allocator
#define ARRAY_Allocator M_Allocator
#define ARRAY_REALLOCATE(allocator, p, size, old_size) M_ReallocNonZeroed(allocator, p, size, old_size)
#define ARRAY_DEALLOCATE(allocator, p) M_Dealloc(allocator, p)
#define ARRAY_SET_DEFAULT_ALLOCATOR \