summaryrefslogtreecommitdiffhomepage
path: root/stc
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-04-17 08:02:39 +0200
committerTyge Løvset <[email protected]>2021-04-17 08:02:39 +0200
commit0dfe69fa5dd7d4d9dded93d35106537e1ea76243 (patch)
tree3c94d8d4f6ef2aa6b9d5c19fc6da3e69521bf18b /stc
parent23ad1fbb91ef3cdddec7e54f3bde79082c2b0e24 (diff)
downloadSTC-modified-0dfe69fa5dd7d4d9dded93d35106537e1ea76243.tar.gz
STC-modified-0dfe69fa5dd7d4d9dded93d35106537e1ea76243.zip
Changed c_emplace_items(&cont, ctype, {...}) macro with c_emplace(ctype, cont, {...}): consistent with c_init(ctype, cont, {...}).
Diffstat (limited to 'stc')
-rw-r--r--stc/ccommon.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/stc/ccommon.h b/stc/ccommon.h
index ec01d731..684c0f90 100644
--- a/stc/ccommon.h
+++ b/stc/ccommon.h
@@ -121,11 +121,11 @@
#define c_breakwith continue
#define c_init(ctype, c, ...) \
- ctype c = ctype##_init(); c_emplace_items(&c, ctype, __VA_ARGS__)
+ ctype c = ctype##_init(); c_emplace(ctype, c, __VA_ARGS__)
-#define c_emplace_items(self, ctype, ...) do { \
+#define c_emplace(ctype, c, ...) do { \
const ctype##_rawvalue_t _c_arr[] = __VA_ARGS__; \
- ctype##_emplace_n(self, _c_arr, c_arraylen(_c_arr)); \
+ ctype##_emplace_n(&(c), _c_arr, c_arraylen(_c_arr)); \
} while (0)
#define c_del(ctype, ...) do { \