3.1.31.2.4. waf_tools.preprocess.extract_file_as_array_from_expansion

waf_tools.preprocess.extract_file_as_array_from_expansion(prep_node: Node) → tuple[list[str], list[str]]

Extract logical source lines for the given header from a preprocessed file.

The function scans the preprocessed file, tracks line-marker directives, and collects only the lines that belong to the original header file identified by the name of prep_node.