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

Support generating (simple) macros in header-translator #688

Closed
madsmtm opened this issue Jan 5, 2025 · 1 comment
Closed

Support generating (simple) macros in header-translator #688

madsmtm opened this issue Jan 5, 2025 · 1 comment
Labels
A-framework Affects the framework crates and the translator for them enhancement New feature or request

Comments

@madsmtm
Copy link
Owner

madsmtm commented Jan 5, 2025

Swift has support for this. From Apple's documentation:

simple, constant-like macros, declared with the #define directive

Macros are imported when they use literals for string, floating-point, or integer values, or use operators like +, -, >, and == between literals or previously defined macros.

Might be difficult if the macros' data isn't exposed properly to us by libclang (so hard to tell if the macro is sufficiently simple).

This is needed for better CoreFoundation support: #556.

@madsmtm madsmtm added enhancement New feature or request A-framework Affects the framework crates and the translator for them labels Jan 5, 2025
@madsmtm
Copy link
Owner Author

madsmtm commented Jan 9, 2025

Oops, I already had an issue open for this: #609

@madsmtm madsmtm closed this as not planned Won't fix, can't repro, duplicate, stale Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-framework Affects the framework crates and the translator for them enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant