Skip to content

SWIG compilation errors due to macro usage #496

Description

@Sichao25

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions