[fpc-pascal] Firebird +lin32 + fpc lib udf returns garbage.

Jonas Maebe jonas.maebe at elis.ugent.be
Mon Jun 1 14:47:01 CEST 2009


On 01 Jun 2009, at 14:39, Coco Pascal wrote:

> But if I add the following function it returns wrong results. This  
> one does refer to other code.
>
> function Y_Odd(const AValue: LongInt): LongInt; cdecl; export;
> begin
> if Odd(AValue) then
> Result := -1
> else
> Result := 0;
> end;

It doesn't anymore once it is compiled, because odd() gets inlined.


Jonas



More information about the fpc-pascal mailing list