[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] GCC question
On Tue, 16 Nov 2010 15:56:36 , xavier.joubert@free.fr wrote:
> Hi Peter,
>
> ----- "Peter Slegg" <p.slegg@scubadivers.co.uk> a écrit :
> > http://gcc.gnu.org/onlinedocs/cpp/Misnesting.html
> >
> > Does this suggest that my error shouldn't happen ?
>
> The first example suggest that the outter macro is evaluated first. So the
> error is expected.
>
> You could use something like the following instead :
> #define my_objc_draw(tree, start) objc_draw(tree, start, tree[0].ob_x-3,tre
> e[0].ob_y-3,tree[0].ob_width+6,tree[0].ob_height+6)
> .
> .
> my_objc_draw(dlog, start);
>
That may be the only way to work around this but there does seem
to be a gcc problem when you compare the gcc -E results with those of
make.
Regards,
Peter