aboutsummaryrefslogtreecommitdiff
path: root/src/ptr_map.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-11-05 17:16:37 +0000
committergingerBill <bill@gingerbill.org>2021-11-05 17:16:37 +0000
commit0af69f8cda4e4bed8cfc732fd53bd93be55916f3 (patch)
treeab132359c15d10f33699b3eecdb5ce38ddc776e4 /src/ptr_map.cpp
parent86e26c9a4401469ea3f3d05aa2371551ad43e3a4 (diff)
Remove `map.cpp` code
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 {