- PSI_DEBUG_PRINT(cpp->parser, "PSI: CPP include trying %s\n", path);
-
- include = psi_parser_open_file(cpp->parser, path, false);
- if (include) {
- struct psi_plist *tokens;
-
- PSI_DEBUG_PRINT(cpp->parser, "PSI: CPP include scanning %s\n", path);
-
- tokens = psi_parser_scan(cpp->parser, include);
- if (tokens) {
- *parsed = psi_cpp_process(cpp, &tokens);
-
- if (*parsed) {
- size_t num_tokens = psi_plist_count(tokens);
+ if (!psi_cpp_has_include(cpp, file, flags, path)) {
+ return false;
+ }