Make INIT operator optional

This commit is contained in:
Patrick Pelissier committed 2022-05-24 23:22:36 +02:00
1 parent 48dc38508a
commit 0cfee02641
1 file changed
+2
+2
View File
@@ -208,6 +208,7 @@ static inline int m_shar3d_integer_cref(int *p) { return *p; }
M_SHAR3D_CONTRACT(shared, cpt_oplist); \
} \
\
M_IF_METHOD(INIT, oplist)( \
static inline void \
M_C(name, _init_new)(shared_t shared) \
{ \
@@ -227,6 +228,7 @@ static inline int m_shar3d_integer_cref(int *p) { return *p; }
*shared = ptr; \
M_SHAR3D_CONTRACT(shared, cpt_oplist); \
} \
, /* No INIT */ ) \
\
static inline bool \
M_C(name, _NULL_p)(const shared_t shared) \