Skip to content

Commit da53d04

Browse files
committed
Support meta char16 and char32
Currently done via unsigned integers; might need proper support with Rust's `char` type in the future.
1 parent 6e6889a commit da53d04

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

godot-codegen/src/conv/type_conversions.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ fn to_hardcoded_rust_ident(full_ty: &GodotTy) -> Option<&str> {
3434
("int", Some("uint32")) => "u32",
3535
("int", Some("uint16")) => "u16",
3636
("int", Some("uint8")) => "u8",
37+
// TODO handle char types as `char`?
38+
("int", Some("char16")) => "u16",
39+
("int", Some("char32")) => "u32",
3740
("int", Some(meta)) => panic!("unhandled type int with meta {meta:?}"),
3841

3942
// Floats (with single precision builds)

0 commit comments

Comments
 (0)