summaryrefslogtreecommitdiffstats
path: root/runtime/map-values.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/map-values.c')
-rw-r--r--runtime/map-values.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/map-values.c b/runtime/map-values.c
index f0df9563..32cfb59d 100644
--- a/runtime/map-values.c
+++ b/runtime/map-values.c
@@ -51,5 +51,14 @@ void _stp_map_add_int64 (MAP map, int64_t val)
}
#endif
+unsigned _stp_map_entry_exists (MAP map)
+{
+ struct map_node *m;
+ if (map == NULL || map->create || map->key == NULL)
+ return 0;
+ return 1;
+}
+
+
#endif /* _MAP_VALUES_C_ */