We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
#define N 10 #define N2 (N << 2) #define FN(x) (x + 1) #define N3 (FN(N))
$ bindgen input.h
pub const N: u32 = 10; pub const N2: u32 = 40;
I expected the FN macro to be expanded to 10 + 1 and then evaluated to 11.
10 + 1
pub const N: u32 = 10; pub const N2: u32 = 40; pub const N3:u32 = 11;
The text was updated successfully, but these errors were encountered:
Duplicate of #753
Sorry, something went wrong.
No branches or pull requests
Input C/C++ Header
Bindgen Invocation
Actual Results
Expected Results
I expected the FN macro to be expanded to
10 + 1
and then evaluated to 11.The text was updated successfully, but these errors were encountered: