summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-08-01 20:40:20 +0200
committerTyge Løvset <[email protected]>2020-08-01 20:40:20 +0200
commit8960cd258078623ba99c342b42cd73df003564ea (patch)
tree2f17f9d75bc3155ee2b5b4d62af9da1f1480e4b7
parent9d776ddba802e7faab32a0d7ae5a8b57979d4341 (diff)
downloadSTC-modified-8960cd258078623ba99c342b42cd73df003564ea.tar.gz
STC-modified-8960cd258078623ba99c342b42cd73df003564ea.zip
Small macro usage fix.
-rw-r--r--stc/cmap.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/stc/cmap.h b/stc/cmap.h
index 555d4c28..fc9209eb 100644
--- a/stc/cmap.h
+++ b/stc/cmap.h
@@ -178,10 +178,10 @@ ctype##_##tag##_set_load_factors(ctype##_##tag* self, float max, float shrink) {
} \
STC_API ctype##_##tag##_entry_t* \
ctype##_##tag##_find(const ctype##_##tag* self, ctype##_##tag##_rawkey_t rawKey); \
-STC_API ctype##_##tag##_entry_t* /* like c++ std::map.insert_or_assign(), or operator[]: */ \
+STC_API ctype##_##tag##_entry_t* /* like c++ std::map.insert_or_assign(): */ \
ctype##_##tag##_put(ctype##_##tag* self, OPT_2_##ctype(ctype##_##tag##_rawkey_t rawKey, Value value)); \
-OPT_1_##ctype(STC_API ctype##_##tag##_entry_t* /* like c++ std::map.insert(): */ \
-ctype##_##tag##_insert(ctype##_##tag* self, ctype##_##tag##_rawkey_t rawKey, Value value);) \
+STC_API ctype##_##tag##_entry_t* /* like c++ std::map.insert(): */ \
+ctype##_##tag##_insert(ctype##_##tag* self, OPT_2_##ctype(ctype##_##tag##_rawkey_t rawKey, Value value)); \
STC_INLINE void \
ctype##_##tag##_swap(ctype##_##tag* a, ctype##_##tag* b) { c_swap(ctype##_##tag, *a, *b); } \
STC_API size_t \