IPB

> Conditional Compilation Constructs
Чат
Форум
Альт Академия: https://www.basealt.ru/altacademy Образовательный портал «Альт Академии»: https://kurs.basealt.ru/ Сообщество СиСА: https://t.me/+Sz-uToWW2zc5OWMy Антон Уймин, главный эксперт компетенции «Сетевое и системное администрирование» Всероссийско ...
КАК ОБМАНЫВАЮТ ГОСУДАРСТВО И С ЧЕМ Я БОРЮСЬ?
АПК и ПО 26.20: https://t.me/apkpo2620 Чат Ассоциации: https://t.me/dg2620_bot В видео причины создания Ассоциации производителй компьютпров и периферийного оборудования 26.20 ====================== Реклама: imaxai@vk.com ====================== 🔗 Boos ...
 

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

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

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



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