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

define with type cast not begin generated #1585

Closed
hellow554 opened this issue Jun 27, 2019 · 1 comment
Closed

define with type cast not begin generated #1585

hellow554 opened this issue Jun 27, 2019 · 1 comment

Comments

@hellow554
Copy link

hellow554 commented Jun 27, 2019

Input C/C++ Header

#define FOO 3
#define BAR ((uint32_t)FOO)
#define BAZ ((uint32_t)5)

Bindgen Invocation

$ bindgen input.h

Actual Results

pub const FOO: u32 = 3;

Expected Results

pub const FOO: u32 = 3;
pub const BAR: u32 = 3;
pub const BAZ: u32 = 5

This seems to be related to the type cast. Not sure why the values won't be produced

@emilio
Copy link
Contributor

emilio commented Jun 27, 2019

Dupe of #316, see there for details.

There's progress on this in jethrogb/rust-cexpr#15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants