Loading...
Searching...
No Matches
macro

Inherits string.

Definition

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.

Examples

type(macro), allocatable :: macros(:)
call add(macros, macro('PI', '3.1415926535'))

Constructors

Initializes a new instance of the Macro Expansion class

macro(character(*), character(*))

type(macro) function macro(character(*) name, (optional) character(*) val) 
Parameters
[in]namemacro name
[in]val(optional) value of the macro

Examples

type(macro) :: m
m = macro('_WIN32')
Returns
The constructed macro object.

Remarks

Remarks

Definition at line 94 of file macro.f90.


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

Variables

character(:), allocatable value
 Value 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.