Re: [fpc-pascal] Re: assitent with Macro translation

2008-03-06 Thread Marco van de Voort
> 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(typ

[fpc-pascal] Re: assitent with Macro translation

2008-03-06 Thread Milan Marusinec
Marco van de Voort wrote: I've started binding libsvn to FPC, and I have encountered the following macro that I do not know how to translate: #define APR_ARRAY_IDX(ary,i,type) (((type *)(ary)->elts)[i]) The usage of such macro is as follows: APR_ARRAY_IDX (new_entries, i, const char *); How ca