32 lines
1.0 KiB
C
32 lines
1.0 KiB
C
#pragma once
|
|
#include "preproc_env.h"
|
|
#include "stb_sprintf.h"
|
|
#include "io.h"
|
|
#include "arena.h"
|
|
#include "string.h"
|
|
#include "unicode.h"
|
|
#include "hash.h"
|
|
#include "linked_list.h"
|
|
#include "regex.h"
|
|
#include "multimedia.h"
|
|
#include "load_library.h"
|
|
#include "filesystem.h"
|
|
|
|
#ifdef __cplusplus
|
|
#include "defer.hpp"
|
|
#define TABLE_ASSERT IO_Assert
|
|
#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 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 \
|
|
if (!allocator.p) allocator = M_GetSystemAllocator();
|
|
#include "array.hpp"
|
|
#endif
|