diff options
| author | Tyge Løvset <[email protected]> | 2022-05-22 20:52:18 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-05-22 20:52:18 +0200 |
| commit | 1c3e7b683469904d224f3f8f1ee0096f1c5b1b9d (patch) | |
| tree | 826ca6560cd952996eb9793cb3356a9791753f2e /docs/cdeq_api.md | |
| parent | 314a41be6b39b6c5967d79555dbf018dbc7eb5f6 (diff) | |
| download | STC-modified-1c3e7b683469904d224f3f8f1ee0096f1c5b1b9d.tar.gz STC-modified-1c3e7b683469904d224f3f8f1ee0096f1c5b1b9d.zip | |
Changed c_apply(v, ..) macro to make it more consistent with c_apply_arr(v, ..) and c_foreach (i, ..): v changed to a pointer - not value.
Note: also c_pair(v) is changed correspondingly, so usage with c_apply(v) is unchanged.
Diffstat (limited to 'docs/cdeq_api.md')
| -rw-r--r-- | docs/cdeq_api.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/cdeq_api.md b/docs/cdeq_api.md index 4a416d09..a1f1228f 100644 --- a/docs/cdeq_api.md +++ b/docs/cdeq_api.md @@ -110,7 +110,7 @@ int main() { printf(" %d", *i.ref); puts(""); - c_apply(v, cdeq_i_push_back(&q, v), int, {1, 4, 5, 22, 33, 2}); + c_apply(v, cdeq_i_push_back(&q, *v), int, {1, 4, 5, 22, 33, 2}); c_foreach (i, cdeq_i, q) printf(" %d", *i.ref); puts(""); |
