[fpc-pascal] Single or Double

Marcel Martin mm10 at ellipsa.net
Mon Jul 11 19:11:41 CEST 2005


Florian Klaempfl a écrit :
> Marcel Martin wrote:
> 
>>Hello,
>>
>>I need to know *at compile time* whether the type Real is
>>Single or Double. Currently, I use this
>>
>>{$IFDEF FPC_HAS_TYPE_DOUBLE}
>> ...
>>{$ELSE}
>>{$IFDEF FPC_HAS_TYPE_SINGLE}
>> ...
>>{$ELSE}
>>  {$FATAL Type Real should be defined as Single or as Double}
>>{$ENDIF} // FPC_HAS_TYPE_SINGLE
>>{$ENDIF} // FPC_HAS_TYPE_DOUBLE
>>
>>This works. But is it a reliable way of doing? Since the
>>FPC_HAS_TYPE_XXX directives are not documented, I have a
>>little doubt ;-)
> 
> 
> They won't be removed, they are too new to be documented :)

Thanks. I keep it as it is.

mm





More information about the fpc-pascal mailing list