diff options
| author | Andrew Guschin <saintruler@gmail.com> | 2021-09-13 16:10:57 +0400 |
|---|---|---|
| committer | Andrew Guschin <saintruler@gmail.com> | 2021-09-13 16:10:57 +0400 |
| commit | 11048808cbe3dc77bb2bee6d2643a33a45574509 (patch) | |
| tree | 0896fe3a242366161b2e5328827bdf66a193a824 /src/storage.h | |
| parent | 5438fe938f6a15f4eadcc0bb2fd09a02130aafb4 (diff) | |
Added bitset
Diffstat (limited to 'src/storage.h')
| -rw-r--r-- | src/storage.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/storage.h b/src/storage.h index 3989c4a..f7f5cd9 100644 --- a/src/storage.h +++ b/src/storage.h @@ -12,6 +12,9 @@ #define MAX_COMPONENTS 32 #endif +#define BITSET_BYTES (MAX_COMPONENTS / 8) +#include "bitset.h" + #define GET_COMPONENT(storage, componentType, idx) (componentType *) internal_getComponent(storage, idx, #componentType) #define REGISTER_COMPONENT(storage, componentType) internal_registerComponent(storage, #componentType, sizeof(componentType)) #define ADD_COMPONENT(storage, idx, componentType) internal_addComponent(storage, idx, #componentType) @@ -30,6 +33,7 @@ typedef struct unsigned int componentsStored; unsigned int objectsStored; component_pair_t *objects; + bitarena_t objectSignatures; } storage_t; component_pair_t * // NULL if pair is not found |