IPB

> Conditional Compilation Constructs
Чат
Форум
Загрузка...
 

Language:
Русский
English

   Conditional Compilation Constructs
   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

You can use conditional compilation directives to produce different code from the same source text, based on the state of conditional symbols.

You can use two constructs:

  - {$IFxxx} ... {$ENDIF}
  - {$IFxxx} ... {$ELSE} ... {$ENDIF}

 IF ... ENDIF:

The $IFxxx ... $ENDIF construct causes the source text between $IFxxx and $ENDIF to be compiled only if the condition specified in $IFxxx is True.

If the condition is False, the source text between the two directives is ignored.

 IF ... ELSE ... ENDIF:

The $IFxxx ... $ELSE ... $ENDIF construct causes

  - the source text between $IFxxx and $ELSE to be compiled if the $IFxxx
    condition is True, or
  - the source text between $ELSE and $ENDIF to be compiled if the $IFxxx
    condition is not True.

Conditional constructs can be nested to 16 levels deep.

There must be an equal number of $IFxxx and $ENDIF directives in every source file.

See Also

 
 К началу страницы 
 

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



-
Хостинг предоставлен компанией "Веб Сервис Центр" при поддержке компании "ДокЛаб"