From 6b5434d64f073af254bfcc74de8bb4b12e04ce7b Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sun, 21 Oct 2018 22:27:52 +0200 Subject: [PATCH] Fix regression: even if there is no INIT method for the base type, the container still defines a INIT method. --- m-array.h | 2 +- m-list.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/m-array.h b/m-array.h index 24f5616d..99141d41 100644 --- a/m-array.h +++ b/m-array.h @@ -51,7 +51,7 @@ /* FIXME: Do we want to export some methods as they are slow and are not fit to be used for building other methods (like _remove)? */ #define ARRAYI_OPLIST2(name, oplist) \ - (M_IF_METHOD(INIT, oplist)(INIT(M_C(name, _init)),) \ + (INIT(M_C(name, _init)) \ ,INIT_SET(M_C(name, _init_set)) \ ,INIT_WITH(API_1(M_INIT_VAI)) \ ,SET(M_C(name, _set)) \ diff --git a/m-list.h b/m-list.h index ad9e31b2..3953ae1e 100644 --- a/m-list.h +++ b/m-list.h @@ -54,7 +54,7 @@ #define LISTI_OPLIST(arg) LISTI_OPLIST2 arg #define LISTI_OPLIST2(name, oplist) \ - (M_IF_METHOD(INIT, oplist)(INIT(M_C(name, _init)),), \ + (INIT(M_C(name, _init)), \ INIT_SET(M_C(name, _init_set)), \ INIT_WITH(API_1(M_INIT_VAI)), \ SET(M_C(name, _set)), \