1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-01 16:38:31 +00:00

Add RequiredParam<T> and RequiredValue<T> to mark Object * arguments and return values as required

Co-authored-by: Thaddeus Crews <repiteo@outlook.com>
This commit is contained in:
David Snopek
2023-12-06 14:20:11 -06:00
parent bbe9654327
commit d95d49ee12
9 changed files with 376 additions and 1 deletions

View File

@@ -88,7 +88,7 @@ static String get_property_info_type_name(const PropertyInfo &p_info) {
}
static String get_type_meta_name(const GodotTypeInfo::Metadata metadata) {
static const char *argmeta[13] = { "none", "int8", "int16", "int32", "int64", "uint8", "uint16", "uint32", "uint64", "float", "double", "char16", "char32" };
static const char *argmeta[14] = { "none", "int8", "int16", "int32", "int64", "uint8", "uint16", "uint32", "uint64", "float", "double", "char16", "char32", "required" };
return argmeta[metadata];
}