summaryrefslogtreecommitdiffhomepage
path: root/docs/cbox_api.md
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-08-06 17:48:06 +0200
committerTyge Løvset <[email protected]>2022-08-06 17:48:06 +0200
commit618b5704e6f85cfe1b6e5c9c9373abe76a8bb628 (patch)
tree4e25a538c8ba3fd58bb25b90ff6dc54adfb31aa4 /docs/cbox_api.md
parent927fa8093ea0bc1e25586e60c47cf1dd8a311d9e (diff)
downloadSTC-modified-618b5704e6f85cfe1b6e5c9c9373abe76a8bb628.tar.gz
STC-modified-618b5704e6f85cfe1b6e5c9c9373abe76a8bb628.zip
c_apply() deprecated: replaced with c_forarray() macro. Updated and improved README.md docs.
Diffstat (limited to 'docs/cbox_api.md')
-rw-r--r--docs/cbox_api.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/cbox_api.md b/docs/cbox_api.md
index 4087ffa3..1119d930 100644
--- a/docs/cbox_api.md
+++ b/docs/cbox_api.md
@@ -84,10 +84,10 @@ int main()
c_auto (IVec, vec) // declare and init vec, call drop at scope exit
c_auto (ISet, set) // similar
{
- c_apply(v, IVec_push(&vec, *v), IBox, {
+ c_forarray (IBox, v, {
IBox_make(2021), IBox_make(2012),
IBox_make(2022), IBox_make(2015),
- });
+ }) IVec_push(&vec, *v);
printf("vec:");
c_foreach (i, IVec, vec)