mirror of
https://github.com/Sarsoo/csbindgen.git
synced 2024-12-22 22:46:26 +00:00
Merge pull request #51 from xanathar/pr/repr-c-enums
Added compatibility with repr(C) enum types, defaulting to uint type
This commit is contained in:
commit
6c04d9d2f1
@ -376,6 +376,7 @@ namespace {namespace}
|
||||
|
||||
fn convert_token_enum_repr(repr: &str) -> &str {
|
||||
match repr {
|
||||
"(C)" => "uint",
|
||||
"(u8)" => "byte",
|
||||
"(u16)" => "ushort",
|
||||
"(u32)" => "uint",
|
||||
|
Loading…
Reference in New Issue
Block a user