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 /examples/sidebyside.cpp | |
| 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 'examples/sidebyside.cpp')
| -rw-r--r-- | examples/sidebyside.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/sidebyside.cpp b/examples/sidebyside.cpp index 2578c120..35dd1a6e 100644 --- a/examples/sidebyside.cpp +++ b/examples/sidebyside.cpp @@ -48,7 +48,7 @@ int main() { c_auto (cmap_si, food) { c_forlist (i, cmap_si_raw, {{"burger", 5}, {"pizza", 12}, {"steak", 15}}) - cmap_si_emplace(&food, c_pair(i.ref)); + cmap_si_emplace(&food, c_PAIR(i.ref)); c_foreach (i, cmap_si, food) printf("%s, %d\n", cstr_str(&i.ref->first), i.ref->second); |
