From: Jan Viktorin Subject: Re: [PATCH v1 01/10] app/test: introduce resources for tests Date: Thu, 12 May 2016 17:01:40 +0200 Message-ID: <20160512170140.0ca5e5f2@pcviktorin.fit.vutbr.cz> References: <1462531720-26217-1-git-send-email-viktorin@rehivetech.com> <7154696.NNSjZHJaDi@xps13> <20160506182042.411cf755@pcviktorin.fit.vutbr.cz> <1678450.4x7Skatt1Y@xps13> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, Bruce Richardson , David Marchand To: Thomas Monjalon Return-path: Received: from wes1-so1.wedos.net (wes1-so1.wedos.net [46.28.106.15]) by dpdk.org (Postfix) with ESMTP id D3BAE6CB9 for ; Thu, 12 May 2016 17:03:28 +0200 (CEST) In-Reply-To: <1678450.4x7Skatt1Y@xps13> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, 12 May 2016 16:58:31 +0200 Thomas Monjalon wrote: > 2016-05-06 18:20, Jan Viktorin: > > On Fri, 06 May 2016 16:01:08 +0200 > > Thomas Monjalon wrote: > > > 2016-05-06 12:48, Jan Viktorin: > > > > +static struct resource linkres_ ##_n = { \ > > > > + .name = RTE_STR(_n), \ > > > > + .beg = _b, \ > > > > + .end = _e, \ > > > > +}; \ > > > > +__REGISTER_RESOURCE(linkres_ ##_n) > > > > > > Please avoid nested macros. > > > > I don't understand this. I am avoiding code duplication. Is it wrong? > > Which code duplication? > Is __REGISTER_RESOURCE used elsewhere? No :). I've already posted a fix of this. -- Jan Viktorin E-mail: Viktorin@RehiveTech.com System Architect Web: www.RehiveTech.com RehiveTech Brno, Czech Republic