rust-bindgen icon indicating copy to clipboard operation
rust-bindgen copied to clipboard

Constants like UINT64_MAX not recognized, even with clang_macro_fallback

Open eliemichel opened this issue 1 year ago • 0 comments

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;

eliemichel avatar Sep 29 '24 15:09 eliemichel