Loading...
Searching...
No Matches
cond_state

Definition

State associated with a single conditional nesting level.

Each #if directive pushes one instance of this type onto cond_stack, and the corresponding #endif removes it.

The combination of active and has_met implements the standard first-match semantics of conditional preprocessing.

Constructors

Constructor

type(cond_state) function cond_state(logical active, logical has_met)
Parameters
[in]activeWhether the current branch is active and should emit code.
[in]has_metWhether a previous branch in the same conditional group has already evaluated to true.
Returns
A newly constructed conditional state object.

Definition at line 165 of file conditional.f90.


The documentation for this type was generated from the following file: