TTargets.AddExampleUnit¶
Adds an example unit target to the collection
Declaration¶
Source position: fpmkunit.pp line 869
public
function AddExampleUnit(const AUnitName: string) : TTarget;
function AddExampleUnit(const AUnitName: string; const OSes: TOSes)
: TTarget;
function AddExampleUnit(const AUnitName: string; const CPUs: TCPUS;
const OSes: TOSes) : TTarget;
Description¶
Creates and adds a new example unit target that demonstrates usage patterns and serves as sample code for package functionality.
Example units are typically installed separately from main package units and provide documentation through working code examples.