summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cbox.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-04-20 11:51:00 +0200
committerTyge Løvset <[email protected]>2022-04-20 11:51:00 +0200
commitb06500c3920ae7ec56489d4dfe05f6a33af85a31 (patch)
treea725f67d20de40e73fb1dcb9165835579a42c739 /include/stc/cbox.h
parent7c88fc11ef62d5be83fe34fe72da6eadfd64ba6b (diff)
downloadSTC-modified-b06500c3920ae7ec56489d4dfe05f6a33af85a31.tar.gz
STC-modified-b06500c3920ae7ec56489d4dfe05f6a33af85a31.zip
Final carc / cbox cleanup.
Diffstat (limited to 'include/stc/cbox.h')
-rw-r--r--include/stc/cbox.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/stc/cbox.h b/include/stc/cbox.h
index 690c8a7f..c2ecbae4 100644
--- a/include/stc/cbox.h
+++ b/include/stc/cbox.h
@@ -117,11 +117,11 @@ _cx_memb(_reset_from)(_cx_self* self, i_val val) {
else self->get = c_new(i_val, val);
}
-STC_INLINE _cx_self
-_cx_memb(_make)(_cx_raw raw) { return _cx_memb(_from)(i_valfrom(raw)); }
-
#if !defined _i_no_clone
STC_INLINE _cx_self
+ _cx_memb(_make)(_cx_raw raw) { return _cx_memb(_from)(i_valfrom(raw)); }
+
+ STC_INLINE _cx_self
_cx_memb(_clone)(_cx_self other) {
if (!other.get) return other;
i_valraw r = i_valto(other.get);
@@ -134,7 +134,7 @@ _cx_memb(_make)(_cx_raw raw) { return _cx_memb(_from)(i_valfrom(raw)); }
_cx_memb(_drop)(self);
*self = _cx_memb(_clone)(other);
}
-#endif
+#endif // !_i_no_clone
STC_INLINE void
_cx_memb(_take)(_cx_self* self, _cx_self other) {