We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 919aeb6 commit 09ddaf2Copy full SHA for 09ddaf2
src/basic/hashmap.h
@@ -88,8 +88,10 @@ OrderedHashmap* _ordered_hashmap_new(const struct hash_ops *hash_ops HASHMAP_DE
88
#define hashmap_new(ops) _hashmap_new(ops HASHMAP_DEBUG_SRC_ARGS)
89
#define ordered_hashmap_new(ops) _ordered_hashmap_new(ops HASHMAP_DEBUG_SRC_ARGS)
90
91
-#define hashmap_free_and_replace(a, b) \
+#define hashmap_free_and_replace(a, b) \
92
free_and_replace_full(a, b, hashmap_free)
93
+#define ordered_hashmap_free_and_replace(a, b) \
94
+ free_and_replace_full(a, b, ordered_hashmap_free)
95
96
HashmapBase* _hashmap_free(HashmapBase *h, free_func_t default_free_key, free_func_t default_free_value);
97
static inline Hashmap* hashmap_free(Hashmap *h) {
0 commit comments