summaryrefslogtreecommitdiff
path: root/src/runtime/c/gu/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/c/gu/map.c')
-rw-r--r--src/runtime/c/gu/map.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/runtime/c/gu/map.c b/src/runtime/c/gu/map.c
index 2ee77bb23..312723f8a 100644
--- a/src/runtime/c/gu/map.c
+++ b/src/runtime/c/gu/map.c
@@ -251,6 +251,12 @@ gu_map_find_key(GuMap* map, const void* key)
return NULL;
}
+bool
+gu_map_has(GuMap* ht, const void* key)
+{
+ size_t idx;
+ return gu_map_lookup(ht, key, &idx);
+}
void*
gu_map_insert(GuMap* map, const void* key)