Open
Description
The use of macros in PCU.h (e.g. PCU_FORMAT_ATTRIBUTE, PCU_EXPL_INST_DECL ) causes syntax errors when compiling Python wrappers, likely due to SWIG's difficulty handling complex macros. This issue is currently ignored in the PR, but a better solution should be implemented.
Potential approaches to consider:
- Use a do-while loop to wrap the macro.
- "Lie" to SWIG and treat the macro as a regular function. See discussion here.
- Refactor macros to be SWIG-compatible.
Other suggestions are welcome.