[fpc-pascal]Macros in FPC
Iván Montes
senbei at terra.es
Mon Feb 10 19:31:26 CET 2003
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 the inline modifier make it work without making a function call in the
generated code?
TIA,
Ivan
More information about the fpc-pascal
mailing list