Gaia-ECS
v0.9.3
A simple and powerful entity component system
Loading...
Searching...
No Matches
config.h
1
#pragma once
2
#include "gaia/config/config_core.h"
3
#include "gaia/config/version.h"
4
5
//------------------------------------------------------------------------------
6
// General settings.
7
// You are free to modify these.
8
//------------------------------------------------------------------------------
9
11
#if !defined(GAIA_FORCE_DEBUG)
12
#define GAIA_FORCE_DEBUG 0
13
#endif
15
#if !defined(GAIA_DISABLE_ASSERTS)
16
#define GAIA_DISABLE_ASSERTS 0
17
#endif
18
19
//------------------------------------------------------------------------------
20
// Internal features.
21
// You are free to modify these but you probably should not.
22
// It is expected to only use them when something doesn't work as expected
23
// or as some sort of workaround.
24
//------------------------------------------------------------------------------
25
27
#ifndef GAIA_ECS_CHUNK_ALLOCATOR
28
#define GAIA_ECS_CHUNK_ALLOCATOR 1
29
#endif
30
32
#ifndef GAIA_ECS_HASH
33
#define GAIA_ECS_HASH GAIA_ECS_HASH_MURMUR2A
34
#endif
35
37
#ifndef GAIA_USE_PREFETCH
38
#define GAIA_USE_PREFETCH 1
39
#endif
40
42
#ifndef GAIA_SYSTEMS_ENABLED
43
#define GAIA_SYSTEMS_ENABLED 1
44
#endif
45
48
#ifndef GAIA_USE_PAGED_ENTITY_CONTAINER
49
#define GAIA_USE_PAGED_ENTITY_CONTAINER 1
50
#endif
51
54
#ifndef GAIA_ENABLE_HOOKS
55
#define GAIA_ENABLE_HOOKS 1
56
#endif
57
#ifndef GAIA_ENABLE_ADD_DEL_HOOKS
58
#define GAIA_ENABLE_ADD_DEL_HOOKS (GAIA_ENABLE_HOOKS && 1)
59
#else
60
// If GAIA_ENABLE_ADD_DEL_HOOKS is defined and GAIA_ENABLE_HOOKS is not, unset it
61
#ifndef GAIA_ENABLE_HOOKS
62
#undef GAIA_ENABLE_ADD_DEL_HOOKS
63
#define GAIA_ENABLE_ADD_DEL_HOOKS 0
64
#endif
65
#endif
66
#ifndef GAIA_ENABLE_SET_HOOKS
67
#define GAIA_ENABLE_SET_HOOKS (GAIA_ENABLE_HOOKS && 1)
68
#else
69
// If GAIA_ENABLE_SET_HOOKS is defined and GAIA_ENABLE_HOOKS is not, unset it
70
#ifndef GAIA_ENABLE_HOOKS
71
#undef GAIA_ENABLE_SET_HOOKS
72
#define GAIA_ENABLE_SET_HOOKS 0
73
#endif
74
#endif
75
78
#ifndef GAIA_USE_SAFE_ENTITY
79
#define GAIA_USE_SAFE_ENTITY 1
80
#endif
81
84
#ifndef GAIA_USE_WEAK_ENTITY
85
#define GAIA_USE_WEAK_ENTITY 1
86
#endif
87
90
#ifndef GAIA_USE_VARIADIC_API
91
#define GAIA_USE_VARIADIC_API 0
92
#endif
93
102
#ifndef GAIA_USE_PARTITIONED_BLOOM_FILTER
103
#define GAIA_USE_PARTITIONED_BLOOM_FILTER 1
104
#endif
105
106
//------------------------------------------------------------------------------
107
108
#include "gaia/config/config_core_end.h"
include
gaia
config
config.h
Generated by
1.9.8