diff options
| author | Tyge Løvset <[email protected]> | 2022-09-26 23:56:09 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-09-26 23:56:09 +0200 |
| commit | 60c4432678073faa271fe9b6f632c5a3789d5727 (patch) | |
| tree | af8dc7b274bf1d7ad96b7774275092a1ecbe1a03 /docs/csmap_api.md | |
| parent | 2c31b421b6c867ab956a843dace0d95769a97667 (diff) | |
| download | STC-modified-60c4432678073faa271fe9b6f632c5a3789d5727.tar.gz STC-modified-60c4432678073faa271fe9b6f632c5a3789d5727.zip | |
Deprecated c_pair() macro. Replaced with c_PAIR(), analogous to c_ARGsv() macro which are both unsafe regarding side effects on arg.
Diffstat (limited to 'docs/csmap_api.md')
| -rw-r--r-- | docs/csmap_api.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/csmap_api.md b/docs/csmap_api.md index 0be14605..38fd4bf4 100644 --- a/docs/csmap_api.md +++ b/docs/csmap_api.md @@ -117,7 +117,7 @@ int main() {"RED", "#FF0000"}, {"GREEN", "#00FF00"}, {"BLUE", "#0000FF"} - }) csmap_str_emplace(&colors, c_pair(i.ref)); + }) csmap_str_emplace(&colors, c_PAIR(i.ref)); // Iterate and print keys and values of sorted map c_foreach (i, csmap_str, colors) { @@ -160,7 +160,7 @@ int main() c_defer (csmap_id_drop(&idnames)) { c_forlist (i, csmap_id_raw, { {100, "Red"}, {110, "Blue"} }) - csmap_id_emplace(&idnames, c_pair(i.ref)); + csmap_id_emplace(&idnames, c_PAIR(i.ref)); // put replaces existing mapped value: csmap_id_emplace_or_assign(&idnames, 110, "White"); |
