You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-23 15:16:17 +00:00
Add metadata for char16_t and char32_t
We don't seem to expose any API that uses `char16_t` yet, but I added it anyway since we make the type info for it. I didn't add anything for `wchar_t` because we are not making a type info so maybe we don't have a need for it yet, it could be added in the future. To prevent breaking compatibility with the C# bindings, we ignore the `char32_t` metadata and still use `System.Int64`.
This commit is contained in:
@@ -3448,6 +3448,12 @@ StringName BindingsGenerator::_get_int_type_name_from_meta(GodotTypeInfo::Metada
|
||||
case GodotTypeInfo::METADATA_INT_IS_UINT64:
|
||||
return "ulong";
|
||||
break;
|
||||
case GodotTypeInfo::METADATA_INT_IS_CHAR16:
|
||||
return "char";
|
||||
break;
|
||||
case GodotTypeInfo::METADATA_INT_IS_CHAR32:
|
||||
// To prevent breaking compatibility, C# bindings need to keep using `long`.
|
||||
return "long";
|
||||
default:
|
||||
// Assume INT64
|
||||
return "long";
|
||||
|
||||
Reference in New Issue
Block a user