aboutsummaryrefslogtreecommitdiff
path: root/src/ptr_map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ptr_map.cpp')
-rw-r--r--src/ptr_map.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ptr_map.cpp b/src/ptr_map.cpp
index 0a61d300f..19443d8a1 100644
--- a/src/ptr_map.cpp
+++ b/src/ptr_map.cpp
@@ -1,5 +1,14 @@
#define PTR_MAP_ENABLE_MULTI_MAP 1
+typedef u32 MapIndex;
+
+struct MapFindResult {
+ MapIndex hash_index;
+ MapIndex entry_prev;
+ MapIndex entry_index;
+};
+
+enum : MapIndex { MAP_SENTINEL = ~(MapIndex)0 };
template <typename K, typename V>
struct PtrMapEntry {