-
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
Macro redefinitions are not being respected #2472
Comments
We had to revert this change so I'm reopening this. |
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
Expected Results
I think the actual results are inconsistent because
BAZ
was evaluated with the redefinition ofFOO
butFOO
itself was not. For the sake of consistency I'd say that the expected behavior should be one of the following:FOO
,BAR
andBAZ
are computed using the first definition ofFOO
. Meaning that the second definition ofFOO
is ignored.BAR
is computed the first definition ofFOO
and the values ofFOO
andBAZ
are computed using the second definition ofFOO
.FOO
:I'd say that there is no "right" answer but I'd prefer the second or third option.
The text was updated successfully, but these errors were encountered: