Re: [fpc-pascal]Macros in FPC

2003-02-10 Thread Anton Tichawa
Hello! > Hi, > > I was wondering if I could do something like this with a macro in FPC: > > const HASH_TABLE_MASK = $ff; > function GetHashIndex ( hash :dword) :integer; > begin >result := hash AND HASH_TABLE_MASK; > end; > > it's kind of a helper funcion so I don't want to perform the functio

[fpc-pascal]Macros in FPC

2003-02-10 Thread Iván Montes
Hi, I was wondering if I could do something like this with a macro in FPC: const HASH_TABLE_MASK = $ff; function GetHashIndex ( hash :dword) :integer; begin result := hash AND HASH_TABLE_MASK; end; it's kind of a helper funcion so I don't want to perform the function call in the code. Would t