Skip to content

Commit

Permalink
Fix bug dereferencing namespaces in convert_swig (#1696)
Browse files Browse the repository at this point in the history
  • Loading branch information
excaliburtb committed Apr 23, 2024
1 parent 6937d00 commit 873e4e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libexec/trick/convert_swig
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ sub process_class($$$$$) {
my $sanitized_namespace = $split_namespaces[-1] ;
my @namespace_split = split /namespace\s*$sanitized_namespace/, $$new_contents_ref;
$save_namespace_content = 'namespace ' . $sanitized_namespace . $namespace_split[-1];
$$new_contents_ref = join('namespace ' . $sanitized_namespace, $namespace_split[0 .. $#namespace_split-1]);
$$new_contents_ref = join('namespace ' . $sanitized_namespace, @namespace_split[0 .. $#namespace_split-1]);
}

# SWIG doesn't like "const static". Change it to "static const"
Expand Down

0 comments on commit 873e4e2

Please sign in to comment.