-
Notifications
You must be signed in to change notification settings - Fork 725
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
macros defining integer constants using expressions containing enum values don't work #258
Comments
cc @emilio |
Ugh, this never worked though... I know how to fix it for this case, but it's not pretty, and it's definitely hard to make it work for the general case. |
If only clang gave us a way of evaluating an expression in a given context... |
Yeah, so I looked into patching libclang so it works, but I can't see a clear way to do this. Basically, clang needs to expand the macro so it knows in what context to evaluate it. You can convert that into a constant, and then I think I can do stuff with it. |
FWIW, if those are switched to constants, they'll work properly with #260, even though it's a complex expression. |
Just to point out other uses / problems, the same underlying problem happen for "function aliases" defines, such as some functions in monocypher. I didn't open a new issue since you've already merged #1546, which is the same but with structs, into this one. |
In Gecko (in gfxFontConstants.h) we have:
rust-bindgen doesn't generate anything for NS_FONT_VARIANT_ALTERNATES_HISTORICAL.
The text was updated successfully, but these errors were encountered: