Skip to content

Commit

Permalink
automatically replace inline friend with friend inline when parsing h…
Browse files Browse the repository at this point in the history
…eaders in Python bindings
  • Loading branch information
SamFlt committed Feb 7, 2024
1 parent 1ca7cc0 commit 760d7e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/python/generator/visp_python_bindgen/header.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ def run_preprocessor(self):
if not line.startswith('#define'):
preprocessed_header_lines.append(line)
preprocessed_header_content = ''.join(preprocessed_header_lines)
# Further refine header content: fix some simple parsing bugs
preprocessed_header_content = preprocessed_header_content.replace('#include<', '#include <') # Bug in cpp header parser
preprocessed_header_content = preprocessed_header_content.replace('inline friend', 'friend inline') # Bug in cpp header parser

return preprocessed_header_content

Expand Down

0 comments on commit 760d7e0

Please sign in to comment.