Replace guards with pragma once

This commit is contained in:
Krzosa Karol
2023-12-31 10:30:34 +01:00
parent 1569f94374
commit 4ef1cb7250
14 changed files with 25 additions and 56 deletions

10
arena.h
View File

@@ -9,6 +9,11 @@
#define MA_GIB(x) (MA_MIB(x) * 1024ull)
#define MA_TIB(x) (MA_GIB(x) * 1024ull)
typedef struct MV_Memory MV_Memory;
typedef struct MA_Checkpoint MA_Checkpoint;
typedef struct MA_Arena MA_Arena;
typedef struct M_Allocator M_Allocator;
#ifndef MA_DEFAULT_RESERVE_SIZE
#define MA_DEFAULT_RESERVE_SIZE MA_GIB(1)
#endif
@@ -69,12 +74,7 @@ typedef enum M_AllocatorOp {
M_AllocatorOp_Deallocate,
} M_AllocatorOp;
typedef struct MV_Memory MV_Memory;
typedef struct MA_Checkpoint MA_Checkpoint;
typedef struct MA_Arena MA_Arena;
typedef struct M_Allocator M_Allocator;
typedef void *M_AllocatorProc(void *allocator, M_AllocatorOp kind, void *p, size_t size);
struct M_Allocator {
void *obj;
void *(*p)(void *allocator, M_AllocatorOp kind, void *p, size_t size);