From 0cfee026412b3fc6a297e4fdaea1d0db025352a4 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Tue, 24 May 2022 23:22:36 +0200 Subject: [PATCH] Make INIT operator optional --- m-shared.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/m-shared.h b/m-shared.h index cbbebe50..4fda0852 100644 --- a/m-shared.h +++ b/m-shared.h @@ -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) \