This commit is contained in:
Patrick Pelissier committed 2017-02-25 22:13:16 +01:00
1 parent e316c2fc01
commit e338ad90b8
1 file changed
+4 -4
+4 -4
View File
@@ -48,8 +48,8 @@
int M_C(name, _cpt)
#define ISHARED_PTR_DEF(name, ...) \
M_IF_NARGS_EQ1(__VA_ARGS__) \
#define ISHARED_PTR_DEF(name, ...) \
M_IF_NARGS_EQ1(__VA_ARGS__) \
(ISHAREDI_PTR_DEF2(name, __VA_ARGS__, M_DEFAULT_OPLIST ), \
ISHAREDI_PTR_DEF2(name, __VA_ARGS__ ))
@@ -88,8 +88,8 @@
{ \
if (shared != NULL) { \
if (atomic_fetch_sub(&(shared->M_C(name, _cpt)), 1) == 1) { \
M_GET_CLEAR oplist (*shared); \
M_GET_DEL oplist (shared); \
M_GET_CLEAR oplist (*shared); \
M_GET_DEL oplist (shared); \
} \
} \
} \