From #3409 (comment) and #2722 (comment).
bindgen currently ignores #undef, e.g.
generates
but A should not exist.
This seems to be acknowledged in:
|
// If I understood correctly, `bindgen` ignores all `#undef` directives. Meaning that this: |
|
// ```c |
|
// #define FOO 1 |
|
// #undef FOO |
|
// #define FOO 2 |
|
// ``` |
From #3409 (comment) and #2722 (comment).
bindgencurrently ignores#undef, e.g.generates
but
Ashould not exist.This seems to be acknowledged in:
rust-bindgen/bindgen/ir/var.rs
Lines 491 to 496 in 25b2347