mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Remove duplicate ERR_PRINTS macro
This commit is contained in:
parent
2d3c0d311c
commit
5a58516231
74 changed files with 158 additions and 167 deletions
|
@ -157,9 +157,9 @@ void CSharpLanguage::finish() {
|
|||
Object *obj = ObjectDB::get_instance(id);
|
||||
|
||||
if (obj) {
|
||||
ERR_PRINTS("Leaked unsafe reference to object: " + obj->to_string());
|
||||
ERR_PRINT("Leaked unsafe reference to object: " + obj->to_string());
|
||||
} else {
|
||||
ERR_PRINTS("Leaked unsafe reference to deleted object: " + itos(id));
|
||||
ERR_PRINT("Leaked unsafe reference to deleted object: " + itos(id));
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
@ -1072,7 +1072,7 @@ void CSharpLanguage::_load_scripts_metadata() {
|
|||
int err_line;
|
||||
Error json_err = JSON::parse(old_json, old_dict_var, err_str, err_line);
|
||||
if (json_err != OK) {
|
||||
ERR_PRINTS("Failed to parse metadata file: '" + err_str + "' (" + String::num_int64(err_line) + ").");
|
||||
ERR_PRINT("Failed to parse metadata file: '" + err_str + "' (" + String::num_int64(err_line) + ").");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -2372,7 +2372,7 @@ bool CSharpScript::_update_exports() {
|
|||
if (tmp_native && !base_ref) {
|
||||
Node *node = Object::cast_to<Node>(tmp_native);
|
||||
if (node && node->is_inside_tree()) {
|
||||
ERR_PRINTS("Temporary instance was added to the scene tree.");
|
||||
ERR_PRINT("Temporary instance was added to the scene tree.");
|
||||
} else {
|
||||
memdelete(tmp_native);
|
||||
}
|
||||
|
@ -2453,7 +2453,7 @@ bool CSharpScript::_get_signal(GDMonoClass *p_class, GDMonoClass *p_delegate, Ve
|
|||
arg.type = GDMonoMarshal::managed_to_variant_type(types[i]);
|
||||
|
||||
if (arg.type == Variant::NIL) {
|
||||
ERR_PRINTS("Unknown type of signal parameter: '" + arg.name + "' in '" + p_class->get_full_name() + "'.");
|
||||
ERR_PRINT("Unknown type of signal parameter: '" + arg.name + "' in '" + p_class->get_full_name() + "'.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -2482,7 +2482,7 @@ bool CSharpScript::_get_member_export(IMonoClassMember *p_member, bool p_inspect
|
|||
if (p_member->is_static()) {
|
||||
#ifdef TOOLS_ENABLED
|
||||
if (p_member->has_attribute(CACHED_CLASS(ExportAttribute)))
|
||||
ERR_PRINTS("Cannot export member because it is static: '" + MEMBER_FULL_QUALIFIED_NAME(p_member) + "'.");
|
||||
ERR_PRINT("Cannot export member because it is static: '" + MEMBER_FULL_QUALIFIED_NAME(p_member) + "'.");
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
@ -2537,7 +2537,7 @@ bool CSharpScript::_get_member_export(IMonoClassMember *p_member, bool p_inspect
|
|||
|
||||
if (variant_type == Variant::NIL) {
|
||||
#ifdef TOOLS_ENABLED
|
||||
ERR_PRINTS("Unknown exported member type: '" + MEMBER_FULL_QUALIFIED_NAME(p_member) + "'.");
|
||||
ERR_PRINT("Unknown exported member type: '" + MEMBER_FULL_QUALIFIED_NAME(p_member) + "'.");
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
@ -3330,7 +3330,7 @@ Error ResourceFormatSaverCSharpScript::save(const String &p_path, const RES &p_r
|
|||
"Compile",
|
||||
ProjectSettings::get_singleton()->globalize_path(p_path));
|
||||
} else {
|
||||
ERR_PRINTS("C# project could not be created; cannot add file: '" + p_path + "'.");
|
||||
ERR_PRINT("C# project could not be created; cannot add file: '" + p_path + "'.");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue