[fpc-pascal] Re: assitent with Macro translation

Marco van de Voort marcov at stack.nl
Thu Mar 6 22:20:58 CET 2008


> Marco van de Voort wrote:
> >
> > You can't. This is more like trying to do generics with macro's on C level.
> > And since FPC macro's afaik have no parameter syntax, this is not possible.
> >
> >   
> Hmm, what about (+/-):
> 
> type_of_elts_entry(type_ptr(integer(ary.elts ) + i * 
> sizeof(type_of_elts_entry ) )^ )

The original had the type as a variable, and casted to it later. That is
different.



More information about the fpc-pascal mailing list