Repository navigation
|
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. |
Replies: 1 comment
I think we don't provide any way to do this, maybe we could extend
In either case |
I think we don't provide any way to do this, maybe we could extend
ParseCallbacksto do such thing.In either case
bindgenwill use the size thatclangdecides, so if you pass-- -fshort-enumsto bindgen, it will behave accordingly.