src/cx/kv_list.h

changeset 1355
ea359a27b264
parent 1354
b024e573dcb2
child 1356
0ffcccb83b69
--- a/src/cx/kv_list.h	Thu Aug 28 13:37:00 2025 +0200
+++ b/src/cx/kv_list.h	Fri Aug 29 13:37:00 2025 +0200
@@ -190,7 +190,7 @@
 
 // Generic Functions
 #ifdef __cplusplus
-
+} // extern "C"
 cx_attr_nonnull
 static inline int cxKvListSetKey(CxList *list, size_t index, CxHashKey key) {
     return cx_kv_list_set_key(list, index, key);
@@ -235,7 +235,7 @@
 
 cx_attr_nonnull
 static inline int cxKvListInsert(CxList *list, size_t index, CxHashKey key, void *value) {
-    return cx_kv_list_insert(list, index, key, value, value);
+    return cx_kv_list_insert(list, index, key, value);
 }
 
 cx_attr_nonnull
@@ -253,7 +253,7 @@
 static inline int cxKvListInsert(CxList *list, size_t index, const char *key, void *value) {
     return cx_kv_list_insert(list, index, cx_hash_key_str(key), value);
 }
-
+extern "C" {
 #else /* ! __cplusplus */
 /**
  * Sets or updates the key of a list item.

mercurial