Wishlist: predicates to check unit/library/include file exists
Original Reporter info from Mantis: MarkMLl @MarkMLl
-
Reporter name: Mark Morgan Lloyd
Original Reporter info from Mantis: MarkMLl @MarkMLl
- Reporter name: Mark Morgan Lloyd
Description:
Even if only available in development versions of the compiler, it would be useful to have predicates to check that files being referenced were actually available.
Additional information:
Something like:
$IF defined(Linux) and (FPC_FULLVERSION>=20701)}
{$if libexists cairo-gobject}
{$LinkLib cairo-gobject}
{$else }
{$error: Experimental code in %file% near %line% attempts to link cairo-gobject}
{$endif }
{$ENDIF}
Mantis conversion info:
- Mantis ID: 25466
- Platform: All
- Version: 2.7.1