summaryrefslogtreecommitdiff
path: root/src/offmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/offmap.h')
-rw-r--r--src/offmap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/offmap.h b/src/offmap.h
index 4476cf772..1fcd9f68b 100644
--- a/src/offmap.h
+++ b/src/offmap.h
@@ -38,6 +38,8 @@ typedef khash_t(off) git_offmap;
#define git_offmap_set_value_at(h, idx, v) kh_val(h, idx) = v
#define git_offmap_delete_at(h, idx) kh_del(off, h, idx)
+#define git_offmap_put(h, k, err) kh_put(off, h, k, err)
+
#define git_offmap_insert(h, key, val, rval) do { \
khiter_t __pos = kh_put(off, h, key, &rval); \
if (rval >= 0) { \