Make INIT operator optional
This commit is contained in:
1 parent
48dc38508a
commit
0cfee02641
1 file changed
+2
@@ -208,6 +208,7 @@ static inline int m_shar3d_integer_cref(int *p) { return *p; }
|
|||||||
M_SHAR3D_CONTRACT(shared, cpt_oplist); \
|
M_SHAR3D_CONTRACT(shared, cpt_oplist); \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
|
M_IF_METHOD(INIT, oplist)( \
|
||||||
static inline void \
|
static inline void \
|
||||||
M_C(name, _init_new)(shared_t shared) \
|
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; \
|
*shared = ptr; \
|
||||||
M_SHAR3D_CONTRACT(shared, cpt_oplist); \
|
M_SHAR3D_CONTRACT(shared, cpt_oplist); \
|
||||||
} \
|
} \
|
||||||
|
, /* No INIT */ ) \
|
||||||
\
|
\
|
||||||
static inline bool \
|
static inline bool \
|
||||||
M_C(name, _NULL_p)(const shared_t shared) \
|
M_C(name, _NULL_p)(const shared_t shared) \
|
||||||
|
|||||||
Reference in new issue
Block a user