You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bindgen::Builder::default().clang_args(&["-target","thumbv7em-none-eabihf"]).layout_tests(false).generate_comments(false).use_core().whitelist_function("MY_.*").whitelist_var("MY_.*").whitelist_type("MY_.*").header("wrapper.h").generate().expect("Unable to generate bindings");
Dupe of #258, but this is really not quite fixable without some sort of heuristic (see similar requests for struct names #1546, struct definitnions (#1044), etc...
This works as expected if you had something like:
const unsigned MY_VAL1 = (1 << SHIFT1); in the C / C++ code.
Bindgen Invocation
Actual Results
Expected Results
MY_VAL1 should be converted to something similar to:
Shouldn't it? (I'm not sure)
The text was updated successfully, but these errors were encountered: