summaryrefslogtreecommitdiff
path: root/src/storage.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/storage.h')
-rw-r--r--src/storage.h4
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