|
@@ -274,7 +274,7 @@ String BindingsGenerator::bbcode_to_xml(const String &p_bbcode, const TypeInterf
|
|
Vector<String> link_target_parts = link_target.split(".");
|
|
Vector<String> link_target_parts = link_target.split(".");
|
|
|
|
|
|
if (link_target_parts.size() <= 0 || link_target_parts.size() > 2) {
|
|
if (link_target_parts.size() <= 0 || link_target_parts.size() > 2) {
|
|
- ERR_PRINTS("Invalid reference format: '" + tag + "'.");
|
|
|
|
|
|
+ ERR_PRINT("Invalid reference format: '" + tag + "'.");
|
|
|
|
|
|
xml_output.append("<c>");
|
|
xml_output.append("<c>");
|
|
xml_output.append(tag);
|
|
xml_output.append(tag);
|
|
@@ -370,7 +370,7 @@ String BindingsGenerator::bbcode_to_xml(const String &p_bbcode, const TypeInterf
|
|
xml_output.append(target_enum_itype.proxy_name); // Includes nesting class if any
|
|
xml_output.append(target_enum_itype.proxy_name); // Includes nesting class if any
|
|
xml_output.append("\"/>");
|
|
xml_output.append("\"/>");
|
|
} else {
|
|
} else {
|
|
- ERR_PRINTS("Cannot resolve enum reference in documentation: '" + link_target + "'.");
|
|
|
|
|
|
+ ERR_PRINT("Cannot resolve enum reference in documentation: '" + link_target + "'.");
|
|
|
|
|
|
xml_output.append("<c>");
|
|
xml_output.append("<c>");
|
|
xml_output.append(link_target);
|
|
xml_output.append(link_target);
|
|
@@ -419,7 +419,7 @@ String BindingsGenerator::bbcode_to_xml(const String &p_bbcode, const TypeInterf
|
|
xml_output.append(target_iconst->proxy_name);
|
|
xml_output.append(target_iconst->proxy_name);
|
|
xml_output.append("\"/>");
|
|
xml_output.append("\"/>");
|
|
} else {
|
|
} else {
|
|
- ERR_PRINTS("Cannot resolve global constant reference in documentation: '" + link_target + "'.");
|
|
|
|
|
|
+ ERR_PRINT("Cannot resolve global constant reference in documentation: '" + link_target + "'.");
|
|
|
|
|
|
xml_output.append("<c>");
|
|
xml_output.append("<c>");
|
|
xml_output.append(link_target);
|
|
xml_output.append(link_target);
|
|
@@ -459,7 +459,7 @@ String BindingsGenerator::bbcode_to_xml(const String &p_bbcode, const TypeInterf
|
|
xml_output.append(target_iconst->proxy_name);
|
|
xml_output.append(target_iconst->proxy_name);
|
|
xml_output.append("\"/>");
|
|
xml_output.append("\"/>");
|
|
} else {
|
|
} else {
|
|
- ERR_PRINTS("Cannot resolve constant reference in documentation: '" + link_target + "'.");
|
|
|
|
|
|
+ ERR_PRINT("Cannot resolve constant reference in documentation: '" + link_target + "'.");
|
|
|
|
|
|
xml_output.append("<c>");
|
|
xml_output.append("<c>");
|
|
xml_output.append(link_target);
|
|
xml_output.append(link_target);
|
|
@@ -529,7 +529,7 @@ String BindingsGenerator::bbcode_to_xml(const String &p_bbcode, const TypeInterf
|
|
xml_output.append(target_itype->proxy_name);
|
|
xml_output.append(target_itype->proxy_name);
|
|
xml_output.append("\"/>");
|
|
xml_output.append("\"/>");
|
|
} else {
|
|
} else {
|
|
- ERR_PRINTS("Cannot resolve type reference in documentation: '" + tag + "'.");
|
|
|
|
|
|
+ ERR_PRINT("Cannot resolve type reference in documentation: '" + tag + "'.");
|
|
|
|
|
|
xml_output.append("<c>");
|
|
xml_output.append("<c>");
|
|
xml_output.append(tag);
|
|
xml_output.append(tag);
|
|
@@ -1202,7 +1202,7 @@ Error BindingsGenerator::_generate_cs_type(const TypeInterface &itype, const Str
|
|
output.append(obj_types[itype.base_name].proxy_name);
|
|
output.append(obj_types[itype.base_name].proxy_name);
|
|
output.append("\n");
|
|
output.append("\n");
|
|
} else {
|
|
} else {
|
|
- ERR_PRINTS("Base type '" + itype.base_name.operator String() + "' does not exist, for class '" + itype.name + "'.");
|
|
|
|
|
|
+ ERR_PRINT("Base type '" + itype.base_name.operator String() + "' does not exist, for class '" + itype.name + "'.");
|
|
return ERR_INVALID_DATA;
|
|
return ERR_INVALID_DATA;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -2120,7 +2120,7 @@ const BindingsGenerator::TypeInterface *BindingsGenerator::_get_type_or_placehol
|
|
if (found)
|
|
if (found)
|
|
return found;
|
|
return found;
|
|
|
|
|
|
- ERR_PRINTS(String() + "Type not found. Creating placeholder: '" + p_typeref.cname.operator String() + "'.");
|
|
|
|
|
|
+ ERR_PRINT(String() + "Type not found. Creating placeholder: '" + p_typeref.cname.operator String() + "'.");
|
|
|
|
|
|
const Map<StringName, TypeInterface>::Element *match = placeholder_types.find(p_typeref.cname);
|
|
const Map<StringName, TypeInterface>::Element *match = placeholder_types.find(p_typeref.cname);
|
|
|
|
|
|
@@ -2352,7 +2352,7 @@ bool BindingsGenerator::_populate_object_type_interfaces() {
|
|
imethod.return_type.cname = return_info.class_name;
|
|
imethod.return_type.cname = return_info.class_name;
|
|
if (!imethod.is_virtual && ClassDB::is_parent_class(return_info.class_name, name_cache.type_Reference) && return_info.hint != PROPERTY_HINT_RESOURCE_TYPE) {
|
|
if (!imethod.is_virtual && ClassDB::is_parent_class(return_info.class_name, name_cache.type_Reference) && return_info.hint != PROPERTY_HINT_RESOURCE_TYPE) {
|
|
/* clang-format off */
|
|
/* clang-format off */
|
|
- ERR_PRINTS("Return type is reference but hint is not '" _STR(PROPERTY_HINT_RESOURCE_TYPE) "'."
|
|
|
|
|
|
+ ERR_PRINT("Return type is reference but hint is not '" _STR(PROPERTY_HINT_RESOURCE_TYPE) "'."
|
|
" Are you returning a reference type by pointer? Method: '" + itype.name + "." + imethod.name + "'.");
|
|
" Are you returning a reference type by pointer? Method: '" + itype.name + "." + imethod.name + "'.");
|
|
/* clang-format on */
|
|
/* clang-format on */
|
|
ERR_FAIL_V(false);
|
|
ERR_FAIL_V(false);
|
|
@@ -2974,7 +2974,7 @@ void BindingsGenerator::_populate_global_constants() {
|
|
// HARDCODED: The Error enum have the prefix 'ERR_' for everything except 'OK' and 'FAILED'.
|
|
// HARDCODED: The Error enum have the prefix 'ERR_' for everything except 'OK' and 'FAILED'.
|
|
if (ienum.cname == name_cache.enum_Error) {
|
|
if (ienum.cname == name_cache.enum_Error) {
|
|
if (prefix_length > 0) { // Just in case it ever changes
|
|
if (prefix_length > 0) { // Just in case it ever changes
|
|
- ERR_PRINTS("Prefix for enum '" _STR(Error) "' is not empty.");
|
|
|
|
|
|
+ ERR_PRINT("Prefix for enum '" _STR(Error) "' is not empty.");
|
|
}
|
|
}
|
|
|
|
|
|
prefix_length = 1; // 'ERR_'
|
|
prefix_length = 1; // 'ERR_'
|