Skip to content

Commit cdf6c5c

Browse files
authored
Merge pull request #895 from godot-rust/qol/char-meta
Support meta `char16` and `char32`
2 parents 6e6889a + da53d04 commit cdf6c5c

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)