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
It seems that while bindgen respects preprocessor defines passed through clang for evaluating ifdefs, it does not consider them for processing #define directives.
While the obvious workaround (or rather perhaps, the preferred way) is to put these defines in a wrapper.h header instead of passing them as arguments to clang, I stumbled over this after thinking that I do not need a wapper.
It seems that while bindgen respects preprocessor defines passed through clang for evaluating ifdefs, it does not consider them for processing
#define
directives.While the obvious workaround (or rather perhaps, the preferred way) is to put these defines in a
wrapper.h
header instead of passing them as arguments to clang, I stumbled over this after thinking that I do not need a wapper.Regardless, it might be a good idea to mention this in Create a wrapper.h Header.
Input C/C++ Header
Bindgen Invocation
Actual Results
Expected Results
All defines based off defines provided through clang show up in the generated bindings:
The text was updated successfully, but these errors were encountered: