Skip to content

Commit

Permalink
cppparser: Fix recursion in expanding function macro arguments
Browse files Browse the repository at this point in the history
See #1635
  • Loading branch information
rdb committed Mar 27, 2024
1 parent c923cf6 commit 38a3048
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dtool/src/cppparser/cppPreprocessor.cxx
Expand Up @@ -2184,6 +2184,11 @@ expand_manifest(const CPPManifest *manifest, const YYLTYPE &loc) {
for (string &arg : args) {
std::set<const CPPManifest *> expanded;
expanded.insert(manifest);
for (const InputFile &infile : _files) {
if (infile._ignore_manifest) {
expanded.insert(infile._manifest);
}
}
r_expand_manifests(arg, false, loc, expanded);
}

Expand Down

0 comments on commit 38a3048

Please sign in to comment.