summaryrefslogtreecommitdiffhomepage
path: root/docs/csset_api.md
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-09-23 07:15:41 +0200
committerTyge Løvset <[email protected]>2022-09-23 07:15:41 +0200
commit34bec4fdf406caff8492d53f0afc80df5d75bba4 (patch)
tree94252139eb34cb37f561ec5a6b9513629b2a81a5 /docs/csset_api.md
parentd70bcf4d875c14da30a39acfc37d00391cc1e7a9 (diff)
downloadSTC-modified-34bec4fdf406caff8492d53f0afc80df5d75bba4.tar.gz
STC-modified-34bec4fdf406caff8492d53f0afc80df5d75bba4.zip
Deprecated c_forarray, c_forarray_p macros - both replaced by c_forlist, and is consistent with other c_for* macros.
Diffstat (limited to 'docs/csset_api.md')
-rw-r--r--docs/csset_api.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/csset_api.md b/docs/csset_api.md
index f2667376..82b8eb09 100644
--- a/docs/csset_api.md
+++ b/docs/csset_api.md
@@ -85,11 +85,11 @@ c_auto (csset_str, fifth)
c_auto (csset_str, first, second)
c_auto (csset_str, third, fourth)
{
- c_forarray_p (const char*, v, {"red", "green", "blue"})
- csset_str_emplace(&second, *v);
+ c_forlist (i, const char*, {"red", "green", "blue"})
+ csset_str_emplace(&second, *i.ref);
- c_forarray_p (const char*, v, {"orange", "pink", "yellow"})
- csset_str_emplace(&third, *v);
+ c_forlist (i, const char*, {"orange", "pink", "yellow"})
+ csset_str_emplace(&third, *i.ref);
csset_str_emplace(&fourth, "potatoes");
csset_str_emplace(&fourth, "milk");