Central global configuration and shared state for the fpx Fortran preprocessor This module defines a single global instance global of type global_settings that holds all persistent, user-configurable state used across the entire preprocessing session:
macros(:) : Dynamic table of all defined macros (object-like and function-like)undef(:) : List of symbols explicitly undefined via #undefincludedir(:) : User-specified include search directories for #include <...>expand_macros : Master switch to enable/disable macro expansion (default: .true.)exclude_comments : When .true., strip C-style /*...*/ and Fortran ! comments from outputThe design uses a single public variable global so that all fpx modules can access and modify the same configuration without passing arguments everywhere. This is safe in single-threaded use (typical for preprocessing) and allows easy customization from driver programs or interactive sessions.
Data Types | |
| type | global_settings |
| Global preprocessor configuration and shared runtime state All components of fpx read from and write to this single instance. Users can safely modify its public components at any time. More... | |
| type(global_settings), public global |
The single global instance used throughout fpx Initialized automatically with sensible defaults values.
Definition at line 92 of file global.f90.