Inherits string.
Derived type representing a single preprocessor macro Extends string with macro-specific fields: replacement value, parameters, variadic flag, and cyclic self-reference detection.
Constructor interface for macro type.
Initializes a new instance of the Macro Expansion (24-176r3) class
type(macro) function macro(character(*) name, (optional) character(*) val)
| [in] | name | macro name |
| [in] | val | (optional) value of the macro |
Examples
Remarks
Variables | |
| character(:), allocatable | value |
| Name of the macro. | |
| type(string), dimension(:), allocatable | params |
| List of parameter for function like macros. | |
| logical | is_variadic |
| Indicate whether the macro is variadic or not. | |
| logical | is_cyclic |
| Indicates whether the macro has cyclic dependencies or not. | |
Variables inherited from string | |
| character(:), allocatable | chars |
| Variable length character array. | |