Skip to content

Commit

Permalink
Merge pull request #895 from godot-rust/qol/char-meta
Browse files Browse the repository at this point in the history
Support meta `char16` and `char32`
  • Loading branch information
Bromeon committed Sep 14, 2024
2 parents 6e6889a + da53d04 commit cdf6c5c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions godot-codegen/src/conv/type_conversions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ fn to_hardcoded_rust_ident(full_ty: &GodotTy) -> Option<&str> {
("int", Some("uint32")) => "u32",
("int", Some("uint16")) => "u16",
("int", Some("uint8")) => "u8",
// TODO handle char types as `char`?
("int", Some("char16")) => "u16",
("int", Some("char32")) => "u32",
("int", Some(meta)) => panic!("unhandled type int with meta {meta:?}"),

// Floats (with single precision builds)
Expand Down

0 comments on commit cdf6c5c

Please sign in to comment.