From 1c3e7b683469904d224f3f8f1ee0096f1c5b1b9d Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Sun, 22 May 2022 20:52:18 +0200 Subject: 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. --- docs/cset_api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/cset_api.md') diff --git a/docs/cset_api.md b/docs/cset_api.md index 1e361799..2d20c303 100644 --- a/docs/cset_api.md +++ b/docs/cset_api.md @@ -86,9 +86,9 @@ int main () c_auto (cset_str, first, second) c_auto (cset_str, third, fourth) { - c_apply(v, cset_str_emplace(&second, v), const char*, + c_apply(v, cset_str_emplace(&second, *v), const char*, {"red", "green", "blue"}); - c_apply(v, cset_str_emplace(&third, v), const char*, + c_apply(v, cset_str_emplace(&third, *v), const char*, {"orange", "pink", "yellow"}); cset_str_emplace(&fourth, "potatoes"); -- cgit v1.2.3