Creo que te refieres a las directivas de compilación.
Ejemplo:
Código:
{$DEFINE DEBUG}
{$IFDEF DEBUG}
Writeln('Debug is on.'); // this code executes
{$ELSE}
Writeln('Debug is off.'); // this code does not execute
{$ENDIF}
{$UNDEF DEBUG}
{$IFNDEF DEBUG}
Writeln('Debug is off.'); // this code executes
{$ENDIF}
Echa un vistazo a la ayuda de delphi, busca por: Conditional compilation (Delphi)