diff options
| author | Tyge Lovset <[email protected]> | 2022-04-02 00:14:17 +0200 |
|---|---|---|
| committer | Tyge Lovset <[email protected]> | 2022-04-02 00:32:00 +0200 |
| commit | d1660bb47cbf3fc0a7066ef1472f2d3bdfeb92b3 (patch) | |
| tree | 2e9e55277432c1008cde08ac2c714d898c098fee /include/stc/cstack.h | |
| parent | b707e18ae93c60f2b659bad39f1daf54604445f7 (diff) | |
| download | STC-modified-d1660bb47cbf3fc0a7066ef1472f2d3bdfeb92b3.tar.gz STC-modified-d1660bb47cbf3fc0a7066ef1472f2d3bdfeb92b3.zip | |
Internal refactoring/macro rename.
Diffstat (limited to 'include/stc/cstack.h')
| -rw-r--r-- | include/stc/cstack.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/stc/cstack.h b/include/stc/cstack.h index 29b13c90..1d2b259d 100644 --- a/include/stc/cstack.h +++ b/include/stc/cstack.h @@ -98,7 +98,7 @@ STC_INLINE void _cx_memb(_pop_back)(_cx_self* self) STC_INLINE const _cx_value* _cx_memb(_at)(const _cx_self* self, size_t idx)
{ assert(idx < self->size); return self->data + idx; }
-#if !defined _i_no_from
+#if !defined _i_no_clone
STC_INLINE _cx_value* _cx_memb(_emplace)(_cx_self* self, _cx_raw raw)
{ return _cx_memb(_push)(self, i_valfrom(raw)); }
STC_INLINE _cx_value* _cx_memb(_emplace_back)(_cx_self* self, _cx_raw raw)
@@ -119,7 +119,7 @@ STC_INLINE i_val _cx_memb(_value_clone)(_cx_value val) { return i_valfrom(i_valto(&val)); }
STC_INLINE i_valraw _cx_memb(_value_toraw)(_cx_value* val)
{ return i_valto(val); }
-#endif // !_i_no_from
+#endif // !_i_no_clone
STC_INLINE _cx_iter _cx_memb(_begin)(const _cx_self* self)
{ return c_make(_cx_iter){self->data}; }
|
