TConditionalStrings.Add¶
Add a new conditional string
Declaration¶
Source position: fpmkunit.pp line 491
public
function Add(const Value: string) : TConditionalString; overload; overload;
function Add(const Value: string; const OSes: TOSes)
: TConditionalString; overload; overload;
function Add(const Value: string; const CPUs: TCPUS; const OSes: TOSes)
: TConditionalString; overload; overload;
Description¶
Creates and adds a new conditional string with the specified value and platform restrictions. The string will only be used when the current build targets match the specified CPU architectures and operating systems.
Platform-specific strings enable configuration of different values for different target platforms within the same package.