Re: [fpc-pascal] macros with parameters

2006-09-19 Thread Marc Santhoff
Hi again, I've forgotten to give a pointer: {$define BYTE_ORDER(oc):=((oc)=OCODE_GNOP1 or (oc)=OCODE_GESD)} <---> Marc ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] macros with parameters

2006-09-19 Thread Marc Santhoff
Am Mittwoch, den 20.09.2006, 00:55 +0200 schrieb Michalis Kamburelis: > Marc Santhoff wrote: > > Hi, > > > > the docs only show examples of macros without any parameters. Is it > > possible to use them? > > > > Can I make this work anyhow: > > > > {$MACRO ON} > > {$define HOFFSET(rec,field) := p

Re: [fpc-pascal] macros with parameters

2006-09-19 Thread Michalis Kamburelis
Marc Santhoff wrote: > Hi, > > the docs only show examples of macros without any parameters. Is it > possible to use them? > > Can I make this work anyhow: > > {$MACRO ON} > {$define HOFFSET(rec,field) := pointer(@rec.field) - pointer(@rec)} > > type > s1_t = record > a: lon