[fpc-pascal] optionally uses a unit
Xiangrong Fang
xrfang at gmail.com
Mon Nov 18 07:38:33 CET 2013
Hi All,
Is it possible to optionally use a unit? e.g.
unit myunit;
uses {$ifexists persist.pas}persist,{$endif} Classes;
type
TMyClass = class
public
{$ifexists persist.pas}
procedure SaveToStream(s: TStream);
{$endif}
end;
Thanks,
Xiangrong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20131118/889262e1/attachment.html>
More information about the fpc-pascal
mailing list