mirror of
https://github.com/Sarsoo/csbindgen.git
synced 2024-12-23 06:56:27 +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 {
|
fn convert_token_enum_repr(repr: &str) -> &str {
|
||||||
match repr {
|
match repr {
|
||||||
|
"(C)" => "uint",
|
||||||
"(u8)" => "byte",
|
"(u8)" => "byte",
|
||||||
"(u16)" => "ushort",
|
"(u16)" => "ushort",
|
||||||
"(u32)" => "uint",
|
"(u32)" => "uint",
|
||||||
|
Loading…
Reference in New Issue
Block a user