diff options
| author | Tyge Løvset <[email protected]> | 2021-02-21 19:44:29 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-02-21 19:44:29 +0100 |
| commit | 9ad1de563150b5819a17ceb07e5bb1a83f39f2b4 (patch) | |
| tree | 6b1e6fbf4dab50917b85642663c4a496199db1c6 /stc/ccommon.h | |
| parent | c609469b3eac08cc369f30a54cc737a3d9cadc3b (diff) | |
| download | STC-modified-9ad1de563150b5819a17ceb07e5bb1a83f39f2b4.tar.gz STC-modified-9ad1de563150b5819a17ceb07e5bb1a83f39f2b4.zip | |
Renamed emplace_put() to emplace_or_assign(). May add put() as alias to insert_or_assign().
Diffstat (limited to 'stc/ccommon.h')
| -rw-r--r-- | stc/ccommon.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stc/ccommon.h b/stc/ccommon.h index 50626b36..d3ceed52 100644 --- a/stc/ccommon.h +++ b/stc/ccommon.h @@ -117,9 +117,9 @@ #define c_breakwith continue
#define c_init(ctype, c, ...) \
- ctype c = ctype##_init(); c_emplace_n(&c, ctype, __VA_ARGS__)
+ ctype c = ctype##_init(); c_emplace_items(&c, ctype, __VA_ARGS__)
-#define c_emplace_n(self, ctype, ...) do { \
+#define c_emplace_items(self, ctype, ...) do { \
const ctype##_rawvalue_t __arr[] = __VA_ARGS__; \
ctype##_emplace_n(self, __arr, c_arraylen(__arr)); \
} while (0)
|
