SmartPascal
$Y
Compiler Directive
Determines whether application symbol information is built
1   {$YD}
2   {$Y-}
3   {$Y+}
Description
The $Y compiler directive determines whether Delphi builds symbol definition and reference information, as used by the Delphi browser and code explorer.
 
By default, Delphi builds just the definitions, and not the references.
 
The references are the users of the symbols.
 
The overheads for keeping symbol information are minimal.
 
The allowed values are :
 
$YD  = Defs On , Refs Off
$Y-  = Defs Off, Refs Off
$Y+  = Defs On , Refs On

 
$Y only works when $DebugInfo and LocalSymbols are On.
Related commands
$DebugInfo Determines whether application debug information is built
$LocalSymbols Determines what application debug information is built
 
Example code :