[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] GCC question



On Tue, 16 Nov 2010 12:53:03 , Peter Slegg <p.slegg@scubadivers.co.uk> wrote:
> On Mon, 15 Nov 2010 22:07:31 , "Helmut Karlowski" <helmut.karlowski@ish.de> wrote:
> > Am 15.11.2010, 21:53 Uhr, schrieb Helmut Karlowski
> > <helmut.karlowski@ish.de>:
> >
> > I tested this with bcc, gcc, and pure-c. Only pure-c expands the inner
> > macro first, the others emit an error. So I'm afraid, you'll have to
> > change your code.
> >
> > Never stop learning ;-)
> >
>
> Late I realised that obj_draw is also a macro and that gcc must be
> evaluating it before it evaluates the inner macro TREE_XYWH(dlog)
>
> Is there a "correct" order of precedence for C macros ? It seems that
> only PureC allows with elegant use of a macro.
>
> Peter

http://gcc.gnu.org/onlinedocs/cpp/Misnesting.html

Does this suggest that my error shouldn't happen ?

Peter