-
Hello 👋 How to determine, preferably before bindings generation, translated rust type of enum? On various archs and OSs it can be unsigned or signed integer ( The size also depending on args like "short-enum", but I need some default. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I think we don't provide any way to do this, maybe we could extend
In either case |
Beta Was this translation helpful? Give feedback.
I think we don't provide any way to do this, maybe we could extend
ParseCallbacks
to do such thing.In either case
bindgen
will use the size thatclang
decides, so if you pass-- -fshort-enums
to bindgen, it will behave accordingly.