Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SWIG Support #4

Open
h33p opened this issue Nov 29, 2021 · 0 comments
Open

SWIG Support #4

h33p opened this issue Nov 29, 2021 · 0 comments

Comments

@h33p
Copy link
Owner

h33p commented Nov 29, 2021

cglue-bindgen's C++ headers already "almost" work with SWIG for bindings generation. However, it would be nice to have a "just works (tm)" out-of-the-box experience.

Several things need to be done:

  1. Disable heavily templated helper functions, as they are only useful for C++ and break SWIG.
  2. Add SWIG binding language selection in config (an array most likely).
  3. Generate SWIG module files.
  4. Expand templates for default container/context type aliases. Template expansion needs to be done recursively for other typedefs, because SWIG doesn't handle multiple nesting levels properly.
  5. Provide helpers/conversions on SWIG side for various type (CSlice/CIterator/Callback/etc.)
  6. Extend examples with other languages.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant