Lightweight directed graph implementation for cycle detection in macro expansion This module provides a compact, allocation-efficient directed graph (digraph) specifically designed for detecting circular dependencies during macro expansion in the fpx preprocessor.
Features:
Used internally by fpx_macro to prevent infinite recursion when a macro expands (directly or indirectly) to itself (e.g., #define A B, #define B A).
Data Types | |
| interface | digraph |
| Directed graph with fixed vertex count and efficient cycle detection Stores edges in a dense adjacency matrix slice per vertex. Only the actually used portion of each row is tracked via list_sizes. More... | |
|
private |