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

Emit #defines in framework crates #609

Open
madsmtm opened this issue May 1, 2024 · 0 comments
Open

Emit #defines in framework crates #609

madsmtm opened this issue May 1, 2024 · 0 comments
Labels
A-framework Affects the framework crates and the translator for them enhancement New feature or request

Comments

@madsmtm
Copy link
Owner

madsmtm commented May 1, 2024

Given things like:

#define MTLCounterDontSample ((NSUInteger)-1)
#define NSFoundationVersionNumber10_0	397.40

Emit:

const MTLCounterDontSample: NSUInteger = NSUInteger::MAX;
const NSFoundationVersionNumber10_0: c_double = 397.40;

Difficult because we have no way of knowing their correct type.

@madsmtm madsmtm added enhancement New feature or request A-framework Affects the framework crates and the translator for them labels May 1, 2024
@madsmtm madsmtm changed the title Emit #defines Emit #defines in framework crates Nov 26, 2024
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