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/carc_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/carc_api.md')
| -rw-r--r-- | docs/carc_api.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/carc_api.md b/docs/carc_api.md index 3c2a223f..fd20ad01 100644 --- a/docs/carc_api.md +++ b/docs/carc_api.md @@ -104,18 +104,18 @@ int main() map = Stack_push(&s1, Arc_make(Map_init()))->get; // push empty map to s1. c_forlist (i, Map_raw, { {"Joey", 1990}, {"Mary", 1995}, {"Joanna", 1992} }) { - Map_emplace(map, c_pair(i.ref)); // populate it. + Map_emplace(map, c_PAIR(i.ref)); // populate it. } map = Stack_push(&s1, Arc_make(Map_init()))->get; c_forlist (i, Map_raw, { {"Rosanna", 2001}, {"Brad", 1999}, {"Jack", 1980} }) { - Map_emplace(map, c_pair(i.ref)); + Map_emplace(map, c_PAIR(i.ref)); } // POPULATE s2: map = Stack_push(&s2, Arc_make(Map_init()))->get; c_forlist (i, Map_raw, { {"Steve", 1979}, {"Rick", 1974}, {"Tracy", 2003} }) { - Map_emplace(map, c_pair(i.ref)); + Map_emplace(map, c_PAIR(i.ref)); } // Share two Maps from s1 with s2 by cloning(=sharing) the carcs: |
