-
Notifications
You must be signed in to change notification settings - Fork 694
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
Float constants with exponents are not parsed in macros #1928
Comments
I think this bug should be reported to https://github.com/jethrogb/rust-cexpr which is what we use to generate constants from C macros. As a workaround, something like this: static const double ERFA_DAS2R = 4.848136811095359935899141e-6; Or The later should be usable even if you don't have control over the C header. |
#1782 might fix this as well. |
emilio
changed the title
Float constants with exponents are not parsed
Float constants with exponents are not parsed in macros
Nov 26, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Input C/C++ Header
Bindgen Invocation
Actual Results
With debugging output:
Expected Results
Commentary
Hi, hopefully I've not missed something and this is a real bug. I think the example is quite clear. I would have a crack at fixing the issue on my own, but the debugging output has sufficiently terrified me.
The example is derived from erfam.h, although this include file gets pulled in from erfa.h in the same directory (so only erfa.h is needed to be fed to bindgen).
Thanks for bindgen!
The text was updated successfully, but these errors were encountered: