diff options
| author | Tyge Løvset <[email protected]> | 2022-04-15 22:57:56 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-04-15 22:57:56 +0200 |
| commit | c75fd8e4e49a245b58678c5d92abfa0823ab3eed (patch) | |
| tree | 545b7c5b98b4621ab7048fcbdc08531957cdca22 /include/stc/cstack.h | |
| parent | 19a29acc7d2a54edd7f5a4e7f653cb5d1703a09c (diff) | |
| download | STC-modified-c75fd8e4e49a245b58678c5d92abfa0823ab3eed.tar.gz STC-modified-c75fd8e4e49a245b58678c5d92abfa0823ab3eed.zip | |
Adding comment to #endif's.
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 b3f5d5e2..079d9bd0 100644 --- a/include/stc/cstack.h +++ b/include/stc/cstack.h @@ -104,7 +104,8 @@ 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)
{ return _cx_memb(_push)(self, i_valfrom(raw)); }
-#endif
+#endif // !_i_no_emplace
+
STC_INLINE _cx_self _cx_memb(_clone)(_cx_self v) {
_cx_self out = {(_cx_value *) c_malloc(v.size*sizeof(_cx_value)), v.size, v.size};
i_valraw r;
@@ -112,7 +113,6 @@ STC_INLINE _cx_self _cx_memb(_clone)(_cx_self v) { r = i_valto(v.data), out.data[i++] = i_valfrom(r);
return out;
}
-
STC_INLINE void _cx_memb(_copy)(_cx_self *self, _cx_self other) {
if (self->data == other.data) return;
_cx_memb(_drop)(self); *self = _cx_memb(_clone)(other);
|
