typemacro_tprivate
A macro.
Components
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
| captured | integer | allocatabledimension(:) | the local variables at its definition | |
| defaults | type(value_t) | allocatabledimension(:) | the defaults | |
| has_default | logical | allocatabledimension(:) | whether each has a default | |
| node | integer | 0 | its definition | |
| params | integer | allocatabledimension(:) | its arguments | |
| values | type(value_t) | allocatabledimension(:) | their values |
Source
Show the code
type :: macro_t
!! A macro.
integer :: node = 0 !! its definition
integer, allocatable :: params(:) !! its arguments
logical, allocatable :: has_default(:) !! whether each has a default
type(value_t), allocatable :: defaults(:) !! the defaults
integer, allocatable :: captured(:) !! the local variables at its definition
type(value_t), allocatable :: values(:) !! their values
end type macro_t