[omniORB] BUG: macro expansion problem
Bjørn Wennberg
bjornw@colargol.idb.hist.no
08 May 1999 00:51:13 +0200
Alex Hornby <alex@anvil.co.uk> writes:
> Colin Caughie writes:
> > > -----Original Message-----
> > > From: Alex Hornby [mailto:alex@anvil.co.uk]
> > > Sent: Friday, 7 May 1999 12:47
> > > To: omniorb-list@uk.research.att.com
> > > Subject: [omniORB] BUG: macro expansion problem
> > >
> > >
> > > Dear all,
> > >
> > > Macro expansion is not being done properly, as the ## is left in.
> > > I know macros are nasty, but one of our developers is very
> > > attached to
> > > them.
> > >
> > > ...
> > >
> > > #define EV_TAG(tag) \
> > > struct evtag_ ## tag { \
> > > tag value; \
> > > string errortext; \
> > > }
> >
> >
> > Have you tried removing the spaces on either side of the ##?
> >
> > Just a thought,
> >
> > Colin Caughie (A macro fan!)
>
> Yes, it makes little difference:
It works for me, I'm running egcs-1.1.1 on a linux, redhat-5.2 system.
--
-------------------------------------------------------
Bjørn Wennberg email: bjornw@colargol.idb.hist.no
ms: +47 959 92 657