Search code examples
delphidelphi-2009compiler-directives

Where do I define symbols tested with {$IFDEF}?


When I use Delphi directives in code, like:

{$IFDEF something}
.
.
.
{$ENDIF}

Where do I assign the word 'something' in the project? I tried in some places in project options but it didn't work. Guess I didn't find the correct one.


Solution

  • It's in the Conditional Defines slot under Project | Options, which looks like this on D2010:

    Delphi Project Options dialog