[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 <firstname.lastname@example.org> wrote:
> On Mon, 15 Nov 2010 22:07:31 , "Helmut Karlowski" <email@example.com> wrote:
> > Am 15.11.2010, 21:53 Uhr, schrieb Helmut Karlowski
> > <firstname.lastname@example.org>:
> > 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.
Does this suggest that my error shouldn't happen ?