[dpdk-dev] [PATCH v1 01/10] app/test: introduce resources for tests

Jan Viktorin viktorin at rehivetech.com
Thu May 12 17:01:40 CEST 2016


On Thu, 12 May 2016 16:58:31 +0200
Thomas Monjalon <thomas.monjalon at 6wind.com> wrote:

> 2016-05-06 18:20, Jan Viktorin:
> > On Fri, 06 May 2016 16:01:08 +0200
> > Thomas Monjalon <thomas.monjalon at 6wind.com> 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 at RehiveTech.com
   System Architect              Web:    www.RehiveTech.com
   RehiveTech
   Brno, Czech Republic


More information about the dev mailing list