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?