Conditional Compilation: Directives and Symbols


  Conditional Compilation: Directives and Symbols

Conditional compilation is based on the evaluation of conditional symbols.

   Directive  Meaning
   DEFINE     Defines a conditional symbol
   ELSE       Compiles or ignores a portion of source text
   ENDIF      Ends the conditional compilation
   IFDEF      Compiles source text if Name is defined
   IFNDEF     Compiles source text if Name is NOT defined
   IFOPT      Compiles source text if a compiler switch is in a specified
              state (+ or -)
   UNDEF      Undefines a previously defined conditional symbol

   Symbol     Meaning
   CPU86      CPU belongs to 80x86 processor family
   CPU87      Defined only if an 80x87 numeric coprocessor is present at
              compile time
   DPMI       Indicates operating environment is DOS protected mode
   MSDOS      Indicates operating system is real-mode MS-DOS or PC-DOS
   VER70      Turbo Pascal version number
   WINDOWS    Indicates operating enviroment is MS-Windows

See Also

Код для вставки: :: :: :: ::
Поделиться: // //