summaryrefslogtreecommitdiff
path: root/src/strmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/strmap.h')
-rw-r--r--src/strmap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/strmap.h b/src/strmap.h
index 9fdab95bb..4c5f888ae 100644
--- a/src/strmap.h
+++ b/src/strmap.h
@@ -42,6 +42,8 @@ typedef khiter_t git_strmap_iter;
#define git_strmap_set_value_at(h, idx, v) kh_val(h, idx) = v
#define git_strmap_delete_at(h, idx) kh_del(str, h, idx)
+#define git_strmap_put(h, k, err) kh_put(str, h, k, err)
+
#define git_strmap_insert(h, key, val, rval) do { \
khiter_t __pos = kh_put(str, h, key, &rval); \
if (rval >= 0) { \