MDEFINED


 

The MDEFINED compiler directive operator allows conditional compilations base on whether a label reference is a MACRO or DEFINE label type. The directive uses the following format:

 

 

 

MDEFINED(label)

 

Where:

label

Required. A current and valid label reference for a MACRO or DEFINE definition.

Flags Affected: NONE

Note the following:

  1. This operator is only valid when used in a %IF, CIF, %ELSEIF, or CELSEIF directive that exists in the body of a MACRO.

  2. To be processed, a directive operator requires use of an exact syntax format.

  3. When a valid syntax form is detected, this operator and parameter label reference are replaced in the conditional directive source line with a single numeric value as follows:

  4.  

    Value

    The label is ...

    0

    neither a MACRO nor a DEFINE type of label reference.

    1

    a MACRO label type.

    2

    a DEFINE label type.

    3

    both a MACRO and a DEFINE label type.

 

 

See Also: Example Code, Compiler Directives

 



PL/B Language Reference MDEFAULT MDELM