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

Constants like UINT64_MAX not recognized, even with clang_macro_fallback #2944

Open
eliemichel opened this issue Sep 29, 2024 · 0 comments
Open

Comments

@eliemichel
Copy link

Although #1636 was fixed, using builder.clang_macro_fallback() does not work with macros that expand to values that do not fit in a u32. It is potentially related to #2618.

// header.h
#include <stdint.h>
#define FOO (UINT32_MAX)
#define BAR (UINT32_MAX)
// bindings.rs
pub const FOO: u32 = 4294967295;
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

1 participant